com.espertech.esper.epl.join.rep
Class RepositoryImpl

java.lang.Object
  extended by com.espertech.esper.epl.join.rep.RepositoryImpl
All Implemented Interfaces:
Repository

public class RepositoryImpl
extends java.lang.Object
implements Repository

Implements a repository for join events and lookup results.


Constructor Summary
RepositoryImpl(int rootStream, EventBean rootEvent, int numStreams)
          Ctor.
 
Method Summary
 void addResult(Cursor cursor, java.util.Set<EventBean> lookupResults, int resultStream)
          Add a lookup result.
 java.util.Iterator<Cursor> getCursors(int lookupFromStream)
          Supply events for performing look ups for a given stream.
 java.util.List<Node>[] getNodesPerStream()
          Returns a list of nodes that are the lookup results per stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryImpl

public RepositoryImpl(int rootStream,
                      EventBean rootEvent,
                      int numStreams)
Ctor.

Parameters:
rootStream - is the stream supplying the root event
rootEvent - is the root event
numStreams - is the number of streams
Method Detail

getCursors

public java.util.Iterator<Cursor> getCursors(int lookupFromStream)
Description copied from interface: Repository
Supply events for performing look ups for a given stream.

Specified by:
getCursors in interface Repository
Parameters:
lookupFromStream - is the stream to perform lookup for
Returns:
an iterator over events with additional positioning information

addResult

public void addResult(Cursor cursor,
                      java.util.Set<EventBean> lookupResults,
                      int resultStream)
Description copied from interface: Repository
Add a lookup result.

Specified by:
addResult in interface Repository
Parameters:
cursor - provides result position and parent event and node information
lookupResults - is the events found
resultStream - is the stream number of the stream providing the results

getNodesPerStream

public java.util.List<Node>[] getNodesPerStream()
Returns a list of nodes that are the lookup results per stream.

Returns:
result nodes per stream

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com