|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.p2p.util.topk.JStar
public class JStar
Field Summary | |
---|---|
private boolean |
debug
|
private java.util.List |
inputStreams
|
private TupleJValidator |
jvalid
|
private int |
k
|
private static java.lang.String |
line
|
private java.util.List |
queue
|
private FRank |
rankf
|
Constructor Summary | |
---|---|
JStar(java.util.List inputStreams,
TupleJValidator validator,
FRank rankf,
int k)
Instantiate an algorithm with a collection of input streams |
Method Summary | |
---|---|
protected boolean |
assignNextMatch(JNode node)
Shift and assign the variable pointer to the next tuple in the stream which is to be processed. Return true if it is a valid assignment, or
false if otherwise. |
protected JNode |
getNextMatch()
Pop out the next item from the queue to process |
private void |
init()
Initialise the queue |
protected boolean |
shiftNextMatch(JNode node)
Shift the variable pointer to the next tuple in the stream which is to be processed |
java.util.Collection |
start()
Start the algorithm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List inputStreams
private java.util.List queue
private TupleJValidator jvalid
private FRank rankf
private int k
private boolean debug
private static final java.lang.String line
Constructor Detail |
---|
public JStar(java.util.List inputStreams, TupleJValidator validator, FRank rankf, int k)
input
- Method Detail |
---|
private void init()
public java.util.Collection start()
protected JNode getNextMatch()
protected boolean shiftNextMatch(JNode node)
protected boolean assignNextMatch(JNode node)
true
if it is a valid assignment, or
false
if otherwise.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |