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


Java RollingEventBuffer类代码示例

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


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

示例1: RegexPartitionStateRandomAccessImpl

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
/**
 * Ctor.
 * @param getter for access
 */
public RegexPartitionStateRandomAccessImpl(RegexPartitionStateRandomAccessGetter getter)
{
    this.getter = getter;

    // Construct a rolling buffer of new data for holding max index + 1 (position 1 requires 2 events to keep)
    newEvents = new RollingEventBuffer(getter.getMaxPriorIndex() + 1);
    if (!getter.isUnbound())
    {
        priorEventMap = new HashMap<EventBean, EventBean[]>();
    }
    else
    {
        priorEventMap = null;
    }
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:20,代码来源:RegexPartitionStateRandomAccessImpl.java

示例2: PriorEventBufferSingle

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
/**
 * Ctor.
 *
 * @param priorEventIndex is the number-of-events prior to the current event we are interested in
 */
public PriorEventBufferSingle(int priorEventIndex) {
    this.priorEventIndex = priorEventIndex;
    // Construct a rolling buffer of new data for holding max index + 1 (position 1 requires 2 events to keep)
    newEvents = new RollingEventBuffer(priorEventIndex + 1);
    priorEventMap = new HashMap<EventBean, EventBean>();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:PriorEventBufferSingle.java

示例3: RegexPartitionStateRandomAccessImpl

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
/**
 * Ctor.
 *
 * @param getter for access
 */
public RegexPartitionStateRandomAccessImpl(RegexPartitionStateRandomAccessGetter getter) {
    this.getter = getter;

    // Construct a rolling buffer of new data for holding max index + 1 (position 1 requires 2 events to keep)
    newEvents = new RollingEventBuffer(getter.getMaxPriorIndex() + 1);
    if (!getter.isUnbound()) {
        priorEventMap = new HashMap<EventBean, EventBean[]>();
    } else {
        priorEventMap = null;
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:17,代码来源:RegexPartitionStateRandomAccessImpl.java

示例4: PriorEventBufferSingle

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
/**
 * Ctor.
 * @param priorEventIndex is the number-of-events prior to the current event we are interested in
 */
public PriorEventBufferSingle(int priorEventIndex)
{
    this.priorEventIndex = priorEventIndex;
    // Construct a rolling buffer of new data for holding max index + 1 (position 1 requires 2 events to keep)
    newEvents = new RollingEventBuffer(priorEventIndex + 1);
    priorEventMap = new HashMap<EventBean, EventBean>();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:12,代码来源:PriorEventBufferSingle.java

示例5: getNewEvents

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
public RollingEventBuffer getNewEvents() {
    return newEvents;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:PriorEventBufferUnbound.java

示例6: PriorEventBufferUnbound

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
/**
 * Ctor.
 * @param maxPriorIndex is the highest prior-event index required by any expression
 */
public PriorEventBufferUnbound(int maxPriorIndex)
{
    this.maxSize = maxPriorIndex + 1;
    newEvents = new RollingEventBuffer(maxSize);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:10,代码来源:PriorEventBufferUnbound.java

示例7: PriorEventBufferUnbound

import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
/**
 * Ctor.
 *
 * @param maxPriorIndex is the highest prior-event index required by any expression
 */
public PriorEventBufferUnbound(int maxPriorIndex) {
    this.maxSize = maxPriorIndex + 1;
    newEvents = new RollingEventBuffer(maxSize);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:PriorEventBufferUnbound.java


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