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
- 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()
getRange
public Range getRange()
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
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 © 2012 The Apache Software Foundation. All Rights Reserved.