public class OuterInnerDirectionalGraph extends 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) |
Set<Integer> |
getInner(int outerStream)
Returns the set of inner streams for the given outer stream number.
|
Set<Integer> |
getOuter(int innerStream)
Returns the set of outer streams for the given inner stream number.
|
Map<Integer,Set<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.
|
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 Set<Integer> getInner(int outerStream)
outerStream
- is the stream number of the outer streampublic Set<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 String print()
public void addUnqualifiedNavigable(int streamOne, int streamTwo)