public class RepositoryImpl extends Object implements Repository
Constructor and Description |
---|
RepositoryImpl(int rootStream,
EventBean rootEvent,
int numStreams)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addResult(Cursor cursor,
Set<EventBean> lookupResults,
int resultStream)
Add a lookup result.
|
Iterator<Cursor> |
getCursors(int lookupFromStream)
Supply events for performing look ups for a given stream.
|
List<Node>[] |
getNodesPerStream()
Returns a list of nodes that are the lookup results per stream.
|
public RepositoryImpl(int rootStream, EventBean rootEvent, int numStreams)
rootStream
- is the stream supplying the root eventrootEvent
- is the root eventnumStreams
- is the number of streamspublic Iterator<Cursor> getCursors(int lookupFromStream)
Repository
getCursors
in interface Repository
lookupFromStream
- is the stream to perform lookup forpublic void addResult(Cursor cursor, Set<EventBean> lookupResults, int resultStream)
Repository
addResult
in interface Repository
cursor
- provides result position and parent event and node informationlookupResults
- is the events foundresultStream
- is the stream number of the stream providing the results