|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.tuple.SpillableTupleList
public class SpillableTupleList
SpillableTupleList is a simple Iterable
object that can store an unlimited number of Tuple
instances by spilling
excess to a temporary disk file.
Constructor Summary | |
---|---|
SpillableTupleList()
Constructor SpillableTupleList creates a new SpillableTupleList instance. |
|
SpillableTupleList(long threshold)
Constructor SpillableTupleList creates a new SpillableTupleList instance using the given threshold value. |
|
SpillableTupleList(long threshold,
JobConf conf,
CompressionCodec codec)
Constructor SpillableTupleList creates a new SpillableTupleList instance using the given threshold value, and the first available compression codec, if any. |
|
SpillableTupleList(long threshold,
JobConf conf,
CompressionCodec codec,
FlowProcess flowProcess)
|
Method Summary | |
---|---|
boolean |
add(Tuple tuple)
Method add will add the given Tuple to this list. |
boolean |
add(TupleEntry tupleEntry)
Method add the given TupleEntry to this list. |
void |
clear()
Method clear empties this container so it may be re-used. |
Iterator<TupleEntry> |
entryIterator()
Method entryIterator returns a TupleEntry Iterator of all the alues in this collection. |
int |
getNumFiles()
Method getNumFiles returns the number of files this list has spilled to. |
boolean |
isEmpty()
Method isEmpty returns true if this list is empty |
Iterator<Tuple> |
iterator()
Method iterator returns a Tuple Iterator of all the values in this collection. |
void |
setIterator(IndexTuple current,
Iterator values)
|
long |
size()
Method size returns the size of this list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpillableTupleList()
public SpillableTupleList(long threshold)
threshold
- of type longpublic SpillableTupleList(long threshold, JobConf conf, CompressionCodec codec)
threshold
- of type longconf
- codec
- of type CompressionCodecpublic SpillableTupleList(long threshold, JobConf conf, CompressionCodec codec, FlowProcess flowProcess)
Method Detail |
---|
public boolean add(Tuple tuple)
Tuple
to this list.
tuple
- of type Tuplepublic boolean add(TupleEntry tupleEntry)
TupleEntry
to this list. All TupleEntry instances added must declare the same Fields
.
tupleEntry
- of type TupleEntrypublic long size()
public boolean isEmpty()
public int getNumFiles()
public void clear()
public void setIterator(IndexTuple current, Iterator values)
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 |