public class OuterInnerDirectionalGraph
extends java.lang.Object
Constructor and Description |
---|
OuterInnerDirectionalGraph(int numStreams)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
OuterInnerDirectionalGraph |
add(int outerStream,
int innerStream)
Add an outer-to-inner join stream relationship.
|
void |
addUnqualifiedNavigable(int streamOne,
int streamTwo) |
java.util.Set<java.lang.Integer> |
getInner(int outerStream)
Returns the set of inner streams for the given outer stream number.
|
java.util.Set<java.lang.Integer> |
getOuter(int innerStream)
Returns the set of outer streams for the given inner stream number.
|
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getUnqualifiedNavigableStreams() |
boolean |
isInner(int outerStream,
int innerStream)
Returns true if the outer stream has an optional relationship to the inner stream.
|
boolean |
isOuter(int outerStream,
int innerStream)
Returns true if the inner stream has a relationship to the outer stream.
|
java.lang.String |
print()
Prints out collection.
|
public OuterInnerDirectionalGraph(int numStreams)
numStreams
- - number of streamspublic OuterInnerDirectionalGraph add(int outerStream, int innerStream)
outerStream
- is the stream number of the outer streaminnerStream
- is the stream number of the inner streampublic java.util.Set<java.lang.Integer> getInner(int outerStream)
outerStream
- is the stream number of the outer streampublic java.util.Set<java.lang.Integer> getOuter(int innerStream)
innerStream
- is the stream number of the inner streampublic boolean isInner(int outerStream, int innerStream)
outerStream
- is the stream number of the outer streaminnerStream
- is the stream number of the inner streampublic boolean isOuter(int outerStream, int innerStream)
outerStream
- is the stream number of the outer streaminnerStream
- is the stream number of the inner streampublic java.lang.String print()
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getUnqualifiedNavigableStreams()
public void addUnqualifiedNavigable(int streamOne, int streamTwo)