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
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.


Constructor Summary
  InputFormatBase.RangeInputSplit()
           
  InputFormatBase.RangeInputSplit(InputFormatBase.RangeInputSplit split)
           
protected InputFormatBase.RangeInputSplit(String table, Range range, String[] locations)
           
 
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 setLocations(String[] locations)
           
 void setRange(Range range)
           
 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()

InputFormatBase.RangeInputSplit

public InputFormatBase.RangeInputSplit(InputFormatBase.RangeInputSplit split)
                                throws IOException
Throws:
IOException

InputFormatBase.RangeInputSplit

protected InputFormatBase.RangeInputSplit(String table,
                                          Range range,
                                          String[] locations)
Method Detail

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.