当前位置: 首页>>代码示例>>Java>>正文


Java Cursor类代码示例

本文整理汇总了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;
    }
 
开发者ID:espertechinc,项目名称:esper,代码行数:26,代码来源:JoinExecTableLookupStrategyVirtualDW.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:17,代码来源:FullTableScanUniqueValueLookupStrategy.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:19,代码来源:IndexedTableLookupStrategyExpr.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:17,代码来源:FullTableScanLookupStrategy.java

示例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;
    }
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:19,代码来源:JoinExecTableLookupStrategyVirtualDW.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:14,代码来源:InKeywordSingleTableLookupStrategyExpr.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:15,代码来源:IndexedTableLookupStrategy.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:15,代码来源:IndexedTableLookupStrategySingle.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:16,代码来源:IndexedTableLookupStrategySingleExpr.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:SortedTableLookupStrategy.java

示例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);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:10,代码来源:IndexedTableLookupStrategyExpr.java

示例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;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:9,代码来源:CompositeTableLookupStrategy.java

示例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;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:10,代码来源:FullTableScanLookupStrategy.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:InKeywordMultiTableLookupStrategyExpr.java

示例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));
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:SupportRepositoryImpl.java


注:本文中的com.espertech.esper.epl.join.rep.Cursor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。