|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.merger.ConcatSeq<T>
public class ConcatSeq<T>
The ConcatSeq object reads an input set of sequences one by one and this way it produces this final sequence. In short, it is an sequence of sequences.
Field Summary | |
---|---|
int |
active
The number of Sequences that have been added so far. |
int |
delta
Zero means - no growing. |
Sequence<T>[] |
enums
The Sequences that will be concatenated. |
int |
max_size
The maximum size of this object. |
int |
size
The size of this object. |
Constructor Summary | |
---|---|
ConcatSeq(int initInputs)
Constructor for the ConcatSeq object. |
|
ConcatSeq(int initInputs,
int delta)
Constructor for the ConcatEnums object |
Method Summary | |
---|---|
void |
add(Sequence<T> e)
Add the given Sequence to this object if the capacity has not been reached.. |
void |
close()
Invalidates this sequence, releases all resources etc. |
void |
kickOff(Sequence<T> e)
The input Sequence e is exhausted, and it is just
after this concatenator has removed/unlinked it from inner
structures. |
T |
next()
Return the next Sequence in this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Sequence<T>[] enums
public int max_size
public int size
public int active
public int delta
Constructor Detail |
---|
public ConcatSeq(int initInputs)
initInputs
- Description of the Parameterpublic ConcatSeq(int initInputs, int delta)
initInputs
- Description of the Parameterdelta
- Description of the ParameterMethod Detail |
---|
public void add(Sequence<T> e)
e
- the Sequence to addpublic void kickOff(Sequence<T> e)
e
is exhausted, and it is just
after this concatenator has removed/unlinked it from inner
structures. Now it is requested to die, so it would kick off
somehow. For instance, if it is a stream, it would be closed when
it does not do it automatically. You can also peek at active
variable that stores the slot that is being cleaned out. By
default, it closes the sequence iff it is a SequenceWithClose.
e
- the Sequencepublic T next()
next
in interface Sequence<T>
public void close()
SequenceWithClose
close
in interface SequenceWithClose<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |