org.apache.accumulo.core.client.mapreduce
Class AccumuloInputFormat.RangeInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.accumulo.core.client.mapreduce.AccumuloInputFormat.RangeInputSplit
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- AccumuloInputFormat
public static class AccumuloInputFormat.RangeInputSplit
- extends org.apache.hadoop.mapreduce.InputSplit
- implements org.apache.hadoop.io.Writable
The Class RangeInputSplit. Encapsulates a 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 |
AccumuloInputFormat.RangeInputSplit
public AccumuloInputFormat.RangeInputSplit()
getProgress
public static float getProgress(ByteSequence start,
ByteSequence end,
ByteSequence position)
getProgress
public float getProgress(Key currentKey)
getLength
public long getLength()
throws java.io.IOException
- This is merely a ballpark try, please don't use it for accurate numbers.
- Specified by:
getLength
in class org.apache.hadoop.mapreduce.InputSplit
- Throws:
java.io.IOException
getLocations
public java.lang.String[] getLocations()
throws java.io.IOException
- Specified by:
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.