org.apache.accumulo.core.client.mapreduce
Class InputFormatBase.RangeInputSplit

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by 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.


Constructor Summary
InputFormatBase.RangeInputSplit()
           
 
Method Summary
 long getLength()
          This implementation of length is only an estimate, it does not provide exact values.
 String[] getLocations()
           
static float getProgress(ByteSequence start, ByteSequence end, ByteSequence position)
           
 float getProgress(Key currentKey)
           
 Range getRange()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFormatBase.RangeInputSplit

public InputFormatBase.RangeInputSplit()
Method Detail

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.