net.esper.view
Interface OrderedEventCollection

All Superinterfaces:
EventCollection, Iterable<EventBean>
All Known Subinterfaces:
EventStream
All Known Implementing Classes:
ZeroDepthStream

public interface OrderedEventCollection
extends EventCollection

Interface that marks a an ordered event collection.


Method Summary
 Object get(long index)
          Gets the data at an index.
 long getFirstIndex()
          Returns the lower bound of valid index values.
 long getLastIndex()
          Returns the upper bound of valid index values.
 int getSize()
          Returns the size of the collection.
 Iterator iterator(long startIndex, long endIndex)
          Creates an iterator for a range of ordered data.
 
Methods inherited from interface net.esper.view.EventCollection
getEventType, iterator
 

Method Detail

get

Object get(long index)
Gets the data at an index.

Parameters:
index - to get data at
Returns:
data at the index

getFirstIndex

long getFirstIndex()
Returns the lower bound of valid index values.

Returns:
lower bound

getLastIndex

long getLastIndex()
Returns the upper bound of valid index values.

Returns:
upper bound

getSize

int getSize()
Returns the size of the collection.

Returns:
number of elements

iterator

Iterator iterator(long startIndex,
                  long endIndex)
Creates an iterator for a range of ordered data.

Parameters:
startIndex - is the lower bound
endIndex - is the upper bound
Returns:
Iterator for range