public class StaticLengthSplitter extends SlopBlockSplitter
StaticLengthSplitter
is a Splitter
using
a static length to split a resource into an equal sized. Last
remaining block split is returned as it is.DEFAULT_SPLIT_SLOP
Constructor and Description |
---|
StaticLengthSplitter(org.apache.hadoop.conf.Configuration configuration,
long length)
Instantiates a new static length splitter.
|
StaticLengthSplitter(long length)
Instantiates a new static length splitter.
|
Modifier and Type | Method and Description |
---|---|
void |
setLength(long length)
Sets the split length.
|
getMaxSplitSize, getMinSplitSize, getSplits, setMaxSplitSize, setMinSplitSize, setSlop
buildSplit, computeSplitSize, getBlockIndex, getConfiguration, setConfiguration
public StaticLengthSplitter(long length)
length
- the lengthpublic StaticLengthSplitter(org.apache.hadoop.conf.Configuration configuration, long length)
configuration
- the configurationlength
- the length