|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ZeroDepthStream
public final class ZeroDepthStream
Event stream implementation that does not keep any window by itself of the events coming into the stream.
Constructor Summary | |
---|---|
ZeroDepthStream(EventType eventType)
Ctor. |
Method Summary | |
---|---|
View |
addView(View view)
Add a view to the viewable object. |
void |
doneWith(StreamView view,
long index)
Callback from views to indicate that the stream can remove references to all events up to (and including) a particular index. |
java.lang.Object |
get(long index)
Gets the data at an index. |
int |
getDepth()
Get the depth of data that can be held in a stream. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
long |
getFirstIndex()
Returns the lower bound of valid index values. |
long |
getLastIndex()
Returns the upper bound of valid index values. |
java.lang.String |
getName()
Get the name of this stream. |
int |
getSize()
Returns the size of the collection. |
java.util.List<View> |
getViews()
Returns all added views. |
boolean |
hasViews()
Test is there are any views to the Viewable. |
void |
insert(EventBean event)
Insert a new event onto the stream. |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
java.util.Iterator |
iterator(long startIndex,
long endIndex)
Creates an iterator for a range of ordered data. |
boolean |
removeView(View view)
Remove a view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZeroDepthStream(EventType eventType)
eventType
- - type of eventMethod Detail |
---|
public final void insert(EventBean event)
EventStream
insert
in interface EventStream
event
- to insertpublic final java.lang.Object get(long index)
OrderedEventCollection
get
in interface OrderedEventCollection
index
- to get data at
public final long getFirstIndex()
OrderedEventCollection
getFirstIndex
in interface OrderedEventCollection
public final long getLastIndex()
OrderedEventCollection
getLastIndex
in interface OrderedEventCollection
public final int getSize()
OrderedEventCollection
getSize
in interface OrderedEventCollection
public final java.util.Iterator iterator(long startIndex, long endIndex)
OrderedEventCollection
iterator
in interface OrderedEventCollection
startIndex
- is the lower boundendIndex
- is the upper bound
public final EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public final java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface java.lang.Iterable<EventBean>
iterator
in interface EventCollection
public final void doneWith(StreamView view, long index)
EventStream
doneWith
in interface EventStream
view
- is the view on the stream indicating which events can be let go.index
- is the index into the stream's data register up to which that view no longer needs.public final int getDepth()
EventStream
getDepth
in interface EventStream
public final java.lang.String getName()
EventStream
getName
in interface EventStream
public final View addView(View view)
Viewable
addView
in interface Viewable
view
- to add
public final java.util.List<View> getViews()
Viewable
getViews
in interface Viewable
public final boolean removeView(View view)
Viewable
removeView
in interface Viewable
view
- to remove
public final boolean hasViews()
Viewable
hasViews
in interface Viewable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |