本文整理汇总了Java中com.espertech.esper.epl.join.rep.Cursor类的典型用法代码示例。如果您正苦于以下问题:Java Cursor类的具体用法?Java Cursor怎么用?Java Cursor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Cursor类属于com.espertech.esper.epl.join.rep包,在下文中一共展示了Cursor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext context) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, null);
}
eventsPerStream[lookupStream] = theEvent;
Object[] keys = new Object[evaluators.length];
for (int i = 0; i < evaluators.length; i++) {
keys[i] = evaluators[i].evaluate(eventsPerStream, context);
}
Set<EventBean> events = null;
try {
events = externalIndex.lookup(keys, eventsPerStream);
} catch (RuntimeException ex) {
log.warn("Exception encountered invoking virtual data window external index for window '" + namedWindowName + "': " + ex.getMessage(), ex);
}
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().aIndexJoinLookup(events, null);
}
return events;
}
示例2: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, eventIndex);
}
Set<EventBean> result = eventIndex.allValues();
if (result.isEmpty()) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().aIndexJoinLookup(null, null);
}
return null;
}
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().aIndexJoinLookup(result, null);
}
return result;
}
示例3: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, index);
}
Object[] keys = new Object[evaluators.length];
eventsPerStream[streamNum] = theEvent;
for (int i = 0; i < evaluators.length; i++) {
keys[i] = evaluators[i].evaluate(eventsPerStream, true, exprEvaluatorContext);
}
if (InstrumentationHelper.ENABLED) {
Set<EventBean> result = index.lookup(keys);
InstrumentationHelper.get().aIndexJoinLookup(result, keys);
return result;
}
return index.lookup(keys);
}
示例4: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, eventIndex);
}
Set<EventBean> result = eventIndex.getEventSet();
if (result.isEmpty()) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().aIndexJoinLookup(null, null);
}
return null;
}
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().aIndexJoinLookup(result, null);
}
return result;
}
示例5: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext context) {
eventsPerStream[lookupStream] = theEvent;
Object[] keys = new Object[evaluators.length];
for (int i = 0; i < evaluators.length; i++) {
keys[i] = evaluators[i].evaluate(eventsPerStream, context);
}
Set<EventBean> events = null;
try {
events = externalIndex.lookup(keys, eventsPerStream);
}
catch (RuntimeException ex) {
log.warn("Exception encountered invoking virtual data window external index for window '" + namedWindowName + "': " + ex.getMessage(), ex);
}
return events;
}
示例6: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, index);
}
eventsPerStream[streamNum] = theEvent;
Set<EventBean> result = InKeywordTableLookupUtil.singleIndexLookup(evaluators, eventsPerStream, exprEvaluatorContext, index);
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().aIndexJoinLookup(result, null);
}
return result;
}
示例7: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, index);
}
Object[] keys = getKeys(theEvent);
if (InstrumentationHelper.ENABLED) {
Set<EventBean> result = index.lookup(keys);
InstrumentationHelper.get().aIndexJoinLookup(result, keys);
return result;
}
return index.lookup(keys);
}
示例8: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, index);
}
Object key = getKey(theEvent);
if (InstrumentationHelper.ENABLED) {
Set<EventBean> result = index.lookup(key);
InstrumentationHelper.get().aIndexJoinLookup(result, key);
return result;
}
return index.lookup(key);
}
示例9: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, index);
}
eventsPerStream[streamNum] = theEvent;
Object key = exprEvaluator.evaluate(eventsPerStream, true, exprEvaluatorContext);
if (InstrumentationHelper.ENABLED) {
Set<EventBean> result = index.lookup(key);
InstrumentationHelper.get().aIndexJoinLookup(result, key);
return result;
}
return index.lookup(key);
}
示例10: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
if (InstrumentationHelper.ENABLED) {
InstrumentationHelper.get().qIndexJoinLookup(this, index);
ArrayList<Object> keys = new ArrayList<Object>(2);
Set<EventBean> result = strategy.lookupCollectKeys(theEvent, index, exprEvaluatorContext, keys);
InstrumentationHelper.get().aIndexJoinLookup(result, keys.size() > 1 ? keys.toArray() : keys.get(0));
return result;
}
return strategy.lookup(theEvent, index, exprEvaluatorContext);
}
示例11: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext)
{
Object[] keys = new Object[evaluators.length];
eventsPerStream[streamNum] = theEvent;
for (int i = 0; i < evaluators.length; i++) {
keys[i] = evaluators[i].evaluate(eventsPerStream, true, exprEvaluatorContext);
}
return index.lookup(keys);
}
示例12: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext context)
{
Set<EventBean> result = chain.get(theEvent, index.getIndex(), context);
if (result != null && result.isEmpty()) {
return null;
}
return result;
}
示例13: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext)
{
Set<EventBean> result = eventIndex.getEventSet();
if (result.isEmpty())
{
return null;
}
return result;
}
示例14: lookup
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext) {
eventsPerStream[streamNum] = theEvent;
return InKeywordTableLookupUtil.multiIndexLookup(evaluator, eventsPerStream, exprEvaluatorContext, indexes);
}
示例15: getCursors
import com.espertech.esper.epl.join.rep.Cursor; //导入依赖的package包/类
public Iterator<Cursor> getCursors(int lookupStream) {
return new SingleCursorIterator(new Cursor(SupportJoinResultNodeFactory.makeEvent(), 0, null));
}