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


Java HistoricalIndexLookupStrategy类代码示例

本文整理汇总了Java中com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy的典型用法代码示例。如果您正苦于以下问题:Java HistoricalIndexLookupStrategy类的具体用法?Java HistoricalIndexLookupStrategy怎么用?Java HistoricalIndexLookupStrategy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


HistoricalIndexLookupStrategy类属于com.espertech.esper.epl.join.base包,在下文中一共展示了HistoricalIndexLookupStrategy类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: HistoricalDataExecNode

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
/**
 * Ctor.
 *
 * @param historicalEventViewable the view of the historical
 * @param indexingStrategy        the strategy to index poll result for future use
 * @param indexLookupStrategy     the strategy to use past indexed results
 * @param numStreams              the number of streams in the join
 * @param historicalStreamNumber  the stream number of the historical
 */
public HistoricalDataExecNode(HistoricalEventViewable historicalEventViewable, PollResultIndexingStrategy indexingStrategy, HistoricalIndexLookupStrategy indexLookupStrategy, int numStreams, int historicalStreamNumber) {
    this.historicalEventViewable = historicalEventViewable;
    this.indexingStrategy = indexingStrategy;
    this.indexLookupStrategy = indexLookupStrategy;
    this.numStreams = numStreams;
    this.historicalStreamNumber = historicalStreamNumber;

    lookupRows1Event = new EventBean[1][];
    lookupRows1Event[0] = new EventBean[numStreams];
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:20,代码来源:HistoricalDataExecNode.java

示例2: HistoricalTableLookupStrategy

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
/**
 * Ctor.
 * @param viewable providing the polling access
 * @param indexingStrategy strategy for indexing results
 * @param lookupStrategy strategy for using indexed results
 * @param numStreams number of streams
 * @param streamNum stream number of the historical stream
 * @param rootStreamNum the query plan root stream number
 * @param outerJoinExprNode an optional outer join expression
 */
public HistoricalTableLookupStrategy(HistoricalEventViewable viewable, PollResultIndexingStrategy indexingStrategy, HistoricalIndexLookupStrategy lookupStrategy, int numStreams, int streamNum, int rootStreamNum, ExprEvaluator outerJoinExprNode)
{
    this.viewable = viewable;
    this.indexingStrategy = indexingStrategy;
    this.lookupStrategy = lookupStrategy;
    this.streamNum = streamNum;
    this.rootStreamNum = rootStreamNum;
    this.outerJoinExprNode = outerJoinExprNode;
    lookupEventsPerStream = new EventBean[1][numStreams];
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:21,代码来源:HistoricalTableLookupStrategy.java

示例3: HistoricalDataExecNode

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
/**
 * Ctor.
 * @param historicalEventViewable the view of the historical
 * @param indexingStrategy the strategy to index poll result for future use
 * @param indexLookupStrategy the strategy to use past indexed results
 * @param numStreams the number of streams in the join
 * @param historicalStreamNumber the stream number of the historical
 */
public HistoricalDataExecNode(HistoricalEventViewable historicalEventViewable, PollResultIndexingStrategy indexingStrategy, HistoricalIndexLookupStrategy indexLookupStrategy, int numStreams, int historicalStreamNumber)
{
    this.historicalEventViewable = historicalEventViewable;
    this.indexingStrategy = indexingStrategy;
    this.indexLookupStrategy = indexLookupStrategy;
    this.numStreams = numStreams;
    this.historicalStreamNumber = historicalStreamNumber;

    lookupRows1Event = new EventBean[1][];
    lookupRows1Event[0] = new EventBean[numStreams];
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:20,代码来源:HistoricalDataExecNode.java

示例4: makeExec

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
    Pair<HistoricalIndexLookupStrategy, PollResultIndexingStrategy> pair = historicalStreamIndexLists[streamNum].getStrategy(lookupStreamNum);
    HistoricalEventViewable viewable = (HistoricalEventViewable) streamViews[streamNum];
    return new HistoricalDataExecNode(viewable, pair.getSecond(), pair.getFirst(), numStreams, streamNum);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:6,代码来源:HistoricalDataPlanNode.java

示例5: makeExec

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
public ExecNode makeExec(String statementName, String statementId, Annotation[] annotations, Map<String, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal)
{
    Pair<HistoricalIndexLookupStrategy, PollResultIndexingStrategy> pair = historicalStreamIndexLists[streamNum].getStrategy(lookupStreamNum);
    HistoricalEventViewable viewable = (HistoricalEventViewable) streamViews[streamNum];
    return new HistoricalDataExecNode(viewable, pair.getSecond(), pair.getFirst(), numStreams, streamNum);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:7,代码来源:HistoricalDataPlanNode.java

示例6: HistoricalTableLookupStrategy

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
/**
 * Ctor.
 *
 * @param viewable          providing the polling access
 * @param indexingStrategy  strategy for indexing results
 * @param lookupStrategy    strategy for using indexed results
 * @param numStreams        number of streams
 * @param streamNum         stream number of the historical stream
 * @param rootStreamNum     the query plan root stream number
 * @param outerJoinExprNode an optional outer join expression
 */
public HistoricalTableLookupStrategy(HistoricalEventViewable viewable, PollResultIndexingStrategy indexingStrategy, HistoricalIndexLookupStrategy lookupStrategy, int numStreams, int streamNum, int rootStreamNum, ExprEvaluator outerJoinExprNode) {
    this.viewable = viewable;
    this.indexingStrategy = indexingStrategy;
    this.lookupStrategy = lookupStrategy;
    this.streamNum = streamNum;
    this.rootStreamNum = rootStreamNum;
    this.outerJoinExprNode = outerJoinExprNode;
    lookupEventsPerStream = new EventBean[1][numStreams];
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:21,代码来源:HistoricalTableLookupStrategy.java

示例7: makeOuterJoinStategy

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
/**
 * Returns the table lookup strategy for use in outer joins.
 * @param streamViews all views in join
 * @param pollingStreamNum the stream number of the stream looking up into the historical
 * @param historicalStreamIndexLists the index management for the historical stream
 * @return strategy
 */
public HistoricalTableLookupStrategy makeOuterJoinStategy(Viewable[] streamViews, int pollingStreamNum, HistoricalStreamIndexList[] historicalStreamIndexLists)
{
    Pair<HistoricalIndexLookupStrategy, PollResultIndexingStrategy> pair = historicalStreamIndexLists[streamNum].getStrategy(pollingStreamNum);
    HistoricalEventViewable viewable = (HistoricalEventViewable) streamViews[streamNum];
    return new HistoricalTableLookupStrategy(viewable, pair.getSecond(), pair.getFirst(), numStreams, streamNum, rootStreamNum, outerJoinExprNode == null ? null : outerJoinExprNode.getExprEvaluator());
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:14,代码来源:HistoricalDataPlanNode.java

示例8: makeOuterJoinStategy

import com.espertech.esper.epl.join.base.HistoricalIndexLookupStrategy; //导入依赖的package包/类
/**
 * Returns the table lookup strategy for use in outer joins.
 *
 * @param streamViews                all views in join
 * @param pollingStreamNum           the stream number of the stream looking up into the historical
 * @param historicalStreamIndexLists the index management for the historical stream
 * @return strategy
 */
public HistoricalTableLookupStrategy makeOuterJoinStategy(Viewable[] streamViews, int pollingStreamNum, HistoricalStreamIndexList[] historicalStreamIndexLists) {
    Pair<HistoricalIndexLookupStrategy, PollResultIndexingStrategy> pair = historicalStreamIndexLists[streamNum].getStrategy(pollingStreamNum);
    HistoricalEventViewable viewable = (HistoricalEventViewable) streamViews[streamNum];
    return new HistoricalTableLookupStrategy(viewable, pair.getSecond(), pair.getFirst(), numStreams, streamNum, rootStreamNum, outerJoinExprEval);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:14,代码来源:HistoricalDataPlanNode.java


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