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


Java HistoricalEventViewable类代码示例

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


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

示例1: HistoricalDataQueryStrategy

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
/**
 * Ctor.
 *
 * @param myStreamNumber             is the strategy's stream number
 * @param historicalStreamNumber     is the stream number of the view to be polled
 * @param historicalEventViewable    is the view to be polled from
 * @param isOuterJoin                is this is an outer join
 * @param outerJoinCompareNode       is the node to perform the on-comparison for outer joins
 * @param indexLookupStrategy        the strategy to use for limiting the cache result set
 *                                   to only those rows that match filter criteria
 * @param pollResultIndexingStrategy the strategy for indexing poll-results such that a
 *                                   strategy can use the index instead of a full table scan to resolve rows
 */
public HistoricalDataQueryStrategy(int myStreamNumber,
                                   int historicalStreamNumber,
                                   HistoricalEventViewable historicalEventViewable,
                                   boolean isOuterJoin,
                                   ExprEvaluator outerJoinCompareNode,
                                   HistoricalIndexLookupStrategy indexLookupStrategy,
                                   PollResultIndexingStrategy pollResultIndexingStrategy) {
    this.myStreamNumber = myStreamNumber;
    this.historicalStreamNumber = historicalStreamNumber;
    this.historicalEventViewable = historicalEventViewable;
    this.isOuterJoin = isOuterJoin;
    this.outerJoinCompareNode = outerJoinCompareNode;

    lookupRows1Event = new EventBean[1][];
    lookupRows1Event[0] = new EventBean[2];

    this.indexLookupStrategy = indexLookupStrategy;
    this.pollResultIndexingStrategy = pollResultIndexingStrategy;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:33,代码来源:HistoricalDataQueryStrategy.java

示例2: HistoricalDataQueryStrategy

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
/**
 * Ctor.
 * @param myStreamNumber is the strategy's stream number
 * @param historicalStreamNumber is the stream number of the view to be polled
 * @param historicalEventViewable is the view to be polled from
 * @param isOuterJoin is this is an outer join
 * @param outerJoinCompareNode is the node to perform the on-comparison for outer joins
 * @param indexLookupStrategy the strategy to use for limiting the cache result set
 *   to only those rows that match filter criteria
 * @param pollResultIndexingStrategy the strategy for indexing poll-results such that a
 *   strategy can use the index instead of a full table scan to resolve rows
 */
public HistoricalDataQueryStrategy(int myStreamNumber,
                                   int historicalStreamNumber,
                                   HistoricalEventViewable historicalEventViewable,
                                   boolean isOuterJoin,
                                   ExprEvaluator outerJoinCompareNode,
                                   HistoricalIndexLookupStrategy indexLookupStrategy,
                                   PollResultIndexingStrategy pollResultIndexingStrategy)
{
    this.myStreamNumber = myStreamNumber;
    this.historicalStreamNumber = historicalStreamNumber;
    this.historicalEventViewable = historicalEventViewable;
    this.isOuterJoin = isOuterJoin;
    this.outerJoinCompareNode = outerJoinCompareNode;

    lookupRows1Event = new EventBean[1][];
    lookupRows1Event[0] = new EventBean[2];

    this.indexLookupStrategy = indexLookupStrategy;
    this.pollResultIndexingStrategy = pollResultIndexingStrategy;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:33,代码来源:HistoricalDataQueryStrategy.java

示例3: assignThreadLocalCache

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
private void assignThreadLocalCache(Viewable[] streamViews, DataCacheClearableMap[] caches) {
    for (int stream = 0; stream < streamViews.length; stream++) {
        if (streamViews[stream] instanceof HistoricalEventViewable) {
            HistoricalEventViewable historicalViewable = (HistoricalEventViewable) streamViews[stream];
            caches[stream] = new DataCacheClearableMap();
            historicalViewable.getDataCacheThreadLocal().set(caches[stream]);
        }
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:JoinSetComposerHistoricalImpl.java

示例4: deassignThreadLocalCache

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
private void deassignThreadLocalCache(Viewable[] streamViews, DataCacheClearableMap[] caches) {
    for (int stream = 0; stream < streamViews.length; stream++) {
        if (streamViews[stream] instanceof HistoricalEventViewable) {
            HistoricalEventViewable historicalViewable = (HistoricalEventViewable) streamViews[stream];
            historicalViewable.getDataCacheThreadLocal().set(null);
            caches[stream].clear();
        }
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:JoinSetComposerHistoricalImpl.java

示例5: HistoricalDataExecNode

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的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

示例6: executePostLoad

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
public void executePostLoad() {
    if (joinSetComposer == null || !joinSetComposer.getJoinSetComposer().allowsInit()) {
        return;
    }
    EventBean[][] events = new EventBean[streamViews.length][];
    for (int stream = 0; stream < streamViews.length; stream++) {
        Viewable streamView = streamViews[stream];
        if (streamView instanceof HistoricalEventViewable) {
            continue;
        }

        Collection<EventBean> eventsInWindow;
        if (namedWindowTailViews[stream] != null) {
            NamedWindowTailViewInstance nwtail = namedWindowTailViews[stream];
            Collection<EventBean> snapshot = nwtail.snapshotNoLock(namedWindowPostloadFilters[stream], annotations);
            if (namedWindowFilters[stream] != null) {
                eventsInWindow = new ArrayList<EventBean>(snapshot.size());
                ExprNodeUtilityCore.applyFilterExpressionsIterable(snapshot, namedWindowFilters[stream], exprEvaluatorContext, eventsInWindow);
            } else {
                eventsInWindow = snapshot;
            }
        } else if (namedWindowFilters[stream] != null && !namedWindowFilters[stream].isEmpty()) {
            eventsInWindow = new ArrayDeque<EventBean>();
            ExprNodeUtilityCore.applyFilterExpressionsIterable(streamViews[stream], namedWindowFilters[stream], exprEvaluatorContext, eventsInWindow);
        } else {
            eventsInWindow = new ArrayDeque<EventBean>();
            for (EventBean aConsumerView : streamViews[stream]) {
                eventsInWindow.add(aConsumerView);
            }
        }
        events[stream] = eventsInWindow.toArray(new EventBean[eventsInWindow.size()]);
    }
    joinSetComposer.getJoinSetComposer().init(events, exprEvaluatorContext);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:35,代码来源:StatementAgentInstancePostLoadSelect.java

示例7: assignThreadLocalCache

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
private void assignThreadLocalCache(Viewable[] streamViews, DataCacheClearableMap[] caches)
{
    for (int stream = 0; stream < streamViews.length; stream++)
    {
        if (streamViews[stream] instanceof HistoricalEventViewable)
        {
            HistoricalEventViewable historicalViewable = (HistoricalEventViewable) streamViews[stream];
            caches[stream] = new DataCacheClearableMap();
            historicalViewable.getDataCacheThreadLocal().set(caches[stream]);
        }
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:13,代码来源:JoinSetComposerHistoricalImpl.java

示例8: deassignThreadLocalCache

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
private void deassignThreadLocalCache(Viewable[] streamViews, DataCacheClearableMap[] caches)
{
    for (int stream = 0; stream < streamViews.length; stream++)
    {
        if (streamViews[stream] instanceof HistoricalEventViewable)
        {
            HistoricalEventViewable historicalViewable = (HistoricalEventViewable) streamViews[stream];
            historicalViewable.getDataCacheThreadLocal().set(null);
            caches[stream].clear();
        }
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:13,代码来源:JoinSetComposerHistoricalImpl.java

示例9: HistoricalTableLookupStrategy

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的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

示例10: HistoricalDataExecNode

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的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

示例11: executePostLoad

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
public void executePostLoad() {
    if (joinSetComposer == null) {
        return;
    }
    EventBean[][] events = new EventBean[streamViews.length][];
    for (int stream = 0; stream < streamViews.length; stream++) {
        Viewable streamView = streamViews[stream];
        if (streamView instanceof HistoricalEventViewable) {
            continue;
        }

        Collection<EventBean> eventsInWindow;
        if (namedWindowTailViews[stream] != null) {
            NamedWindowTailViewInstance nwtail = namedWindowTailViews[stream];
            Collection<EventBean> snapshot = nwtail.snapshotNoLock(namedWindowPostloadFilters[stream], annotations);
            if (namedWindowFilters[stream] != null) {
                eventsInWindow = new ArrayList<EventBean>(snapshot.size());
                ExprNodeUtility.applyFilterExpressionsIterable(snapshot, namedWindowFilters[stream], exprEvaluatorContext, eventsInWindow);
            }
            else {
                eventsInWindow = snapshot;
            }
        }
        else if (namedWindowFilters[stream] != null && !namedWindowFilters[stream].isEmpty()) {
            eventsInWindow = new ArrayDeque<EventBean>();
            ExprNodeUtility.applyFilterExpressionsIterable(streamViews[stream], namedWindowFilters[stream], exprEvaluatorContext, eventsInWindow);
        }
        else {
            eventsInWindow = new ArrayDeque<EventBean>();
            for (EventBean aConsumerView : streamViews[stream]) {
                eventsInWindow.add(aConsumerView);
            }
        }
        events[stream] = eventsInWindow.toArray(new EventBean[eventsInWindow.size()]);
    }
    joinSetComposer.getJoinSetComposer().init(events);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:38,代码来源:StatementAgentInstancePostLoadSelect.java

示例12: makeExec

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的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

示例13: ViewableActivatorHistorical

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
public ViewableActivatorHistorical(HistoricalEventViewable historicalEventViewable) {
    this.historicalEventViewable = historicalEventViewable;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:ViewableActivatorHistorical.java

示例14: makeHistorical

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的package包/类
public ViewableActivator makeHistorical(HistoricalEventViewable historicalEventViewable) {
    return new ViewableActivatorHistorical(historicalEventViewable);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:ViewableActivatorFactoryDefault.java

示例15: makeExec

import com.espertech.esper.view.HistoricalEventViewable; //导入依赖的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


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