|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.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. |
|
| Method Summary | |
|---|---|
void |
add(Tuple tuple)
Method add will add the given Tuple to this list. |
void |
add(TupleEntry tupleEntry)
Method add the given TupleEntry to this list. |
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. |
Iterator<Tuple> |
iterator()
Method iterator returns a Tuple Iterator of all the values in this collection. |
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 long| Method Detail |
|---|
public void add(Tuple tuple)
Tuple to this list.
tuple - of type Tuplepublic void add(TupleEntry tupleEntry)
TupleEntry to this list. All TupleEntry instances added must declare the same Fields.
tupleEntry - of type TupleEntrypublic long size()
public int getNumFiles()
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 | ||||||||