當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。