public class TupleListCollector extends TupleEntryCollector implements java.lang.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) |
java.util.Iterator<TupleEntry> |
entryIterator()
Method entryIterator return a TupleEntry iterator for this collection.
|
boolean |
isEmpty()
Method isEmpty returns true if this collection is empty.
|
java.util.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 java.util.Iterator<Tuple> iterator()
iterator
in interface java.lang.Iterable<Tuple>
public java.util.Iterator<TupleEntry> entryIterator()
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.