|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.join.plan.QueryGraph
public class QueryGraph
Model of relationships between streams based on properties in both streams that are specified as equal in a filter expression.
Constructor Summary | |
---|---|
QueryGraph(int numStreams)
Ctor. |
Method Summary | |
---|---|
boolean |
add(int streamLeft,
String propertyLeft,
int streamRight,
String propertyRight)
Add properties for 2 streams that are equal. |
protected static void |
fillEquivalentNav(QueryGraph queryGraph)
Fill in equivalent key properties (navigation entries) on all streams. |
String[] |
getIndexProperties(int streamLookup,
int streamIndexed)
Returns index properties. |
String[] |
getKeyProperties(int streamLookup,
int streamIndexed)
Returns key properties. |
Set<Integer> |
getNavigableStreams(int streamFrom)
Returns set of streams that the given stream is navigable to. |
int |
getNumStreams()
Returns the number of streams. |
boolean |
isNavigable(int streamFrom,
int streamTo)
Returns true if there is a relationship between streams via equal properties. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryGraph(int numStreams)
numStreams
- - number of streamsMethod Detail |
---|
public int getNumStreams()
public boolean add(int streamLeft, String propertyLeft, int streamRight, String propertyRight)
streamLeft
- - left hand streampropertyLeft
- - left hand stream propertystreamRight
- - right hand streampropertyRight
- - right hand stream property
public boolean isNavigable(int streamFrom, int streamTo)
streamFrom
- - from stream numberstreamTo
- - to stream number
public Set<Integer> getNavigableStreams(int streamFrom)
streamFrom
- - from stream number
public String[] getIndexProperties(int streamLookup, int streamIndexed)
streamLookup
- - stream to serve as source for looking up eventsstreamIndexed
- - stream to look up in
public String[] getKeyProperties(int streamLookup, int streamIndexed)
streamLookup
- - stream to serve as source for looking up eventsstreamIndexed
- - stream to look up in
protected static void fillEquivalentNav(QueryGraph queryGraph)
queryGraph
- - navigablity info between streamsspublic String toString()
toString
in class Object
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |