public class TupleListCollector extends TupleEntryCollector implements Iterable<Tuple>
tupleEntry
Constructor and Description |
---|
TupleListCollector(Fields fields,
boolean copyTupleOnCollect)
Constructor TupleListCollector creates a new TupleListCollector instance.
|
TupleListCollector(Fields fields,
Tuple... tuple)
Constructor TupleEntryCollector creates a new TupleEntryCollector instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
add, add, close, setFields
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 booleanprotected void collect(TupleEntry tupleEntry)
collect
in class TupleEntryCollector
public boolean isEmpty()
public void clear()
public int size()
public Iterator<TupleEntry> entryIterator()
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.