public class HadoopSpillableTupleList extends cascading.tuple.collect.SpillableTupleList
Iterable object that can store an unlimited number of Tuple instances by spilling
excess to a temporary disk file.
Spills will automatically be compressed using the defaultCodecs values. To disable compression or
change the codecs, see SpillableProps.SPILL_COMPRESS and SpillableProps.SPILL_CODECS.
It is recommended to add Lzo if available.
"org.apache.hadoop.io.compress.LzoCodec,org.apache.hadoop.io.compress.GzipCodec,org.apache.hadoop.io.compress.DefaultCodec"
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
defaultCodecs |
| Constructor and Description |
|---|
HadoopSpillableTupleList(int threshold,
CompressionCodec codec,
Configuration configuration)
Constructor SpillableTupleList creates a new SpillableTupleList instance using the given threshold value, and
the first available compression codec, if any.
|
HadoopSpillableTupleList(int threshold,
TupleSerialization tupleSerialization,
CompressionCodec codec) |
| Modifier and Type | Method and Description |
|---|---|
protected cascading.tuple.io.TupleInputStream |
createTupleInputStream(java.io.File file) |
protected cascading.tuple.io.TupleOutputStream |
createTupleOutputStream(java.io.File file) |
static CompressionCodec |
getCodec(cascading.flow.FlowProcess<? extends Configuration> flowProcess,
java.lang.String defaultCodecs) |
add, addAll, clear, contains, containsAll, getCodecClass, getGrouping, getThreshold, isEmpty, iterator, remove, removeAll, retainAll, setGrouping, setSpillListener, setSpillStrategy, size, spillCount, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String defaultCodecs
public HadoopSpillableTupleList(int threshold, CompressionCodec codec, Configuration configuration)
threshold - of type longcodec - of type CompressionCodecpublic HadoopSpillableTupleList(int threshold, TupleSerialization tupleSerialization, CompressionCodec codec)
public static CompressionCodec getCodec(cascading.flow.FlowProcess<? extends Configuration> flowProcess, java.lang.String defaultCodecs)
protected cascading.tuple.io.TupleOutputStream createTupleOutputStream(java.io.File file)
createTupleOutputStream in class cascading.tuple.collect.SpillableTupleListprotected cascading.tuple.io.TupleInputStream createTupleInputStream(java.io.File file)
createTupleInputStream in class cascading.tuple.collect.SpillableTupleListCopyright © 2007-2021 Cascading Maintainers. All Rights Reserved.