com.marklogic.mapreduce
Class MarkLogicInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
com.marklogic.mapreduce.MarkLogicInputSplit
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class MarkLogicInputSplit
- extends org.apache.hadoop.mapreduce.InputSplit
- implements org.apache.hadoop.io.Writable
MarkLogic-based InputSplit, used to represent a group of records returned by
MarkLogic server, and identify originating host.
MarkLogicInputSplit
public MarkLogicInputSplit()
MarkLogicInputSplit
public MarkLogicInputSplit(long start,
long length,
BigInteger forestId,
String hostName)
getLength
public long getLength()
throws IOException,
InterruptedException
- Specified by:
getLength in class org.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
InterruptedException
isLastSplit
public boolean isLastSplit()
- Is this the last split?
- Returns:
- True if this is the last split; false otherwise.
getLocations
public String[] getLocations()
throws IOException,
InterruptedException
- Specified by:
getLocations in class org.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
InterruptedException
getStart
public long getStart()
setStart
public void setStart(long start)
getForestId
public BigInteger getForestId()
setForestId
public void setForestId(BigInteger forestId)
setHostName
public void setHostName(String[] hostName)
setLength
public void setLength(long length)
setLastSplit
public void setLastSplit(boolean isLast)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com