Spring for Apache Hadoop

org.springframework.data.hadoop.store.split
Class StaticLengthSplitter

java.lang.Object
  extended by org.springframework.data.hadoop.store.split.AbstractSplitter
      extended by org.springframework.data.hadoop.store.split.SlopBlockSplitter
          extended by 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

Field Summary
 
Fields inherited from class org.springframework.data.hadoop.store.split.SlopBlockSplitter
DEFAULT_SPLIT_SLOP
 
Constructor Summary
StaticLengthSplitter(org.apache.hadoop.conf.Configuration configuration, long length)
          Instantiates a new static length splitter.
StaticLengthSplitter(long length)
          Instantiates a new static length splitter.
 
Method Summary
 void setLength(long length)
          Sets the split length.
 
Methods inherited from class org.springframework.data.hadoop.store.split.SlopBlockSplitter
getMaxSplitSize, getMinSplitSize, getSplits, setMaxSplitSize, setMinSplitSize, setSlop
 
Methods inherited from class org.springframework.data.hadoop.store.split.AbstractSplitter
buildSplit, computeSplitSize, getBlockIndex, getConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticLengthSplitter

public StaticLengthSplitter(long length)
Instantiates a new static length splitter.

Parameters:
length - the length

StaticLengthSplitter

public StaticLengthSplitter(org.apache.hadoop.conf.Configuration configuration,
                            long length)
Instantiates a new static length splitter.

Parameters:
configuration - the configuration
length - the length
Method Detail

setLength

public void setLength(long length)
Sets the split length.

Parameters:
length - the new length length

Spring for Apache Hadoop