org.springframework.data.hadoop.store.split
Class StaticLengthSplitter
java.lang.Object
org.springframework.data.hadoop.store.split.AbstractSplitter
org.springframework.data.hadoop.store.split.SlopBlockSplitter
org.springframework.data.hadoop.store.split.StaticLengthSplitter
- All Implemented Interfaces:
- Splitter
public class StaticLengthSplitter
- extends SlopBlockSplitter
A 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.
- Author:
- Janne Valkealahti
|
Method Summary |
void |
setLength(long length)
Sets the split length. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticLengthSplitter
public StaticLengthSplitter(long length)
- Instantiates a new static length splitter.
- Parameters:
length - the length
StaticLengthSplitter
public StaticLengthSplitter(Configuration configuration,
long length)
- Instantiates a new static length splitter.
- Parameters:
configuration - the configurationlength - the length
setLength
public void setLength(long length)
- Sets the split length.
- Parameters:
length - the new length length