Package com.marklogic.contentpump
Class CombineDocumentSplit
- java.lang.Object
-
- org.apache.hadoop.mapreduce.InputSplit
-
- com.marklogic.contentpump.CombineDocumentSplit
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class CombineDocumentSplit extends org.apache.hadoop.mapreduce.InputSplit implements org.apache.hadoop.io.WritableInputSplit with multiple document files combined.
-
-
Constructor Summary
Constructors Constructor Description CombineDocumentSplit()CombineDocumentSplit(List<org.apache.hadoop.mapreduce.lib.input.FileSplit> splits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSplit(org.apache.hadoop.mapreduce.lib.input.FileSplit split)longgetLength()String[]getLocations()List<org.apache.hadoop.mapreduce.lib.input.FileSplit>getSplits()voidreadFields(DataInput in)voidsetSplits(List<org.apache.hadoop.mapreduce.lib.input.FileSplit> splits)voidwrite(DataOutput out)
-
-
-
Constructor Detail
-
CombineDocumentSplit
public CombineDocumentSplit()
-
CombineDocumentSplit
public CombineDocumentSplit(List<org.apache.hadoop.mapreduce.lib.input.FileSplit> splits) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
-
Method Detail
-
getSplits
public List<org.apache.hadoop.mapreduce.lib.input.FileSplit> getSplits()
-
setSplits
public void setSplits(List<org.apache.hadoop.mapreduce.lib.input.FileSplit> splits)
-
addSplit
public void addSplit(org.apache.hadoop.mapreduce.lib.input.FileSplit split) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
getLength
public long getLength() throws IOException, InterruptedException- Specified by:
getLengthin classorg.apache.hadoop.mapreduce.InputSplit- Throws:
IOExceptionInterruptedException
-
getLocations
public String[] getLocations() throws IOException, InterruptedException
- Specified by:
getLocationsin classorg.apache.hadoop.mapreduce.InputSplit- Throws:
IOExceptionInterruptedException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-