Class RepositoryImpl
java.lang.Object
com.espertech.esper.common.internal.epl.join.rep.RepositoryImpl
- All Implemented Interfaces:
Repository
Implements a repository for join events and lookup results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a lookup result.getCursors
(int lookupFromStream) Supply events for performing look ups for a given stream.Returns a list of nodes that are the lookup results per stream.
-
Constructor Details
-
RepositoryImpl
Ctor.- Parameters:
rootStream
- is the stream supplying the root eventrootEvent
- is the root eventnumStreams
- is the number of streams
-
-
Method Details
-
getCursors
Description copied from interface:Repository
Supply events for performing look ups for a given stream.- Specified by:
getCursors
in interfaceRepository
- Parameters:
lookupFromStream
- is the stream to perform lookup for- Returns:
- an iterator over events with additional positioning information
-
addResult
Description copied from interface:Repository
Add a lookup result.- Specified by:
addResult
in interfaceRepository
- Parameters:
cursor
- provides result position and parent event and node informationlookupResults
- is the events foundresultStream
- is the stream number of the stream providing the results
-
getNodesPerStream
Returns a list of nodes that are the lookup results per stream.- Returns:
- result nodes per stream
-