|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.tuple.TupleEntryCollector
cascading.tuple.TupleListCollector
public class TupleListCollector
TupleEntryCollector is a convenience class for managing a list of tuples. More specifically it can simultaneously append and modify in place elements of the list through the use of a ListIterator.
Field Summary |
---|
Fields inherited from class cascading.tuple.TupleEntryCollector |
---|
tupleEntry |
Constructor Summary | |
---|---|
TupleListCollector(Fields fields,
boolean copyTupleOnCollect)
Constructor TupleListCollector creates a new TupleListCollector instance. |
|
TupleListCollector(Fields fields,
Tuple... tuple)
Constructor TupleEntryCollector creates a new TupleEntryCollector instance. |
Method Summary | |
---|---|
void |
clear()
Method clear clears all Tuple instances from this instance. |
protected void |
collect(TupleEntry tupleEntry)
|
Iterator<TupleEntry> |
entryIterator()
Method entryIterator return a TupleEntry iterator for this collection. |
boolean |
isEmpty()
Method isEmpty returns true if this collection is empty. |
Iterator<Tuple> |
iterator()
Method iterator returns an iterator for this collection. |
int |
size()
Returns the size of this collection. |
Methods inherited from class cascading.tuple.TupleEntryCollector |
---|
add, add, close, setFields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TupleListCollector(Fields fields, Tuple... tuple)
fields
- of type Fieldstuple
- of type Tuple...public TupleListCollector(Fields fields, boolean copyTupleOnCollect)
true
if a new Tuple instance should be stored in the
underlying list.
fields
- of type FieldscopyTupleOnCollect
- of type booleanMethod Detail |
---|
protected void collect(TupleEntry tupleEntry)
collect
in class TupleEntryCollector
public boolean isEmpty()
public void clear()
public int size()
public Iterator<Tuple> iterator()
iterator
in interface Iterable<Tuple>
public Iterator<TupleEntry> entryIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |