本文整理汇总了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;
}
}
示例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>();
}
示例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;
}
}
示例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>();
}
示例5: getNewEvents
import com.espertech.esper.collection.RollingEventBuffer; //导入依赖的package包/类
public RollingEventBuffer getNewEvents() {
return newEvents;
}
示例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);
}
示例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);
}