Spring for Apache Hadoop

org.springframework.data.hadoop.store.split
Interface Splitter

All Known Implementing Classes:
AbstractSplitter, SlopBlockSplitter, StaticBlockSplitter, StaticLengthSplitter

public interface Splitter

A strategy interface for creating a list of Splits based on a Path representing a hdfs resource.

Author:
Janne Valkealahti

Method Summary
 java.util.List<Split> getSplits(org.apache.hadoop.fs.Path path)
          Gets the input splits for a Path.
 

Method Detail

getSplits

java.util.List<Split> getSplits(org.apache.hadoop.fs.Path path)
                                throws java.io.IOException
Gets the input splits for a Path. A path needs to be a resource which can be split into a list of splits. Actual implementation will define if split is enforced to be a single file or a collection of files.

Parameters:
path - the path
Returns:
the input splits
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

Spring for Apache Hadoop