org.apache.accumulo.core.client.mapreduce
Class InputFormatBase.RangeInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.accumulo.core.client.mapreduce.InputFormatBase.RangeInputSplit
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- InputFormatBase.RangeInputSplit
- Enclosing class:
- InputFormatBase<K,V>
public static class InputFormatBase.RangeInputSplit
- extends org.apache.hadoop.mapreduce.InputSplit
- implements org.apache.hadoop.io.Writable
The Class RangeInputSplit. Encapsulates an Accumulo range for use in Map Reduce jobs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputFormatBase.RangeInputSplit
public InputFormatBase.RangeInputSplit()
InputFormatBase.RangeInputSplit
public InputFormatBase.RangeInputSplit(InputFormatBase.RangeInputSplit split)
throws IOException
- Throws:
IOException
InputFormatBase.RangeInputSplit
protected InputFormatBase.RangeInputSplit(String table,
Range range,
String[] locations)
getRange
public Range getRange()
setRange
public void setRange(Range range)
getProgress
public static float getProgress(ByteSequence start,
ByteSequence end,
ByteSequence position)
getProgress
public float getProgress(Key currentKey)
getLength
public long getLength()
throws IOException
- This implementation of length is only an estimate, it does not provide exact values. Do not have your code rely on this return value.
- Specified by:
getLength
in class org.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
getLocations
public String[] getLocations()
throws IOException
- Specified by:
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
setLocations
public void setLocations(String[] locations)
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
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.