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

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


Constructor Summary
AccumuloInputFormat.RangeInputSplit()
           
 
Method Summary
 long getLength()
          This is merely a ballpark try, please don't use it for accurate numbers.
 java.lang.String[] getLocations()
           
static float getProgress(ByteSequence start, ByteSequence end, ByteSequence position)
           
 float getProgress(Key currentKey)
           
 void readFields(java.io.DataInput in)
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumuloInputFormat.RangeInputSplit

public AccumuloInputFormat.RangeInputSplit()
Method Detail

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.