本文整理汇总了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];
}
示例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];
}
示例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];
}
示例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);
}
示例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);
}
示例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];
}
示例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());
}
示例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);
}