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

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by org.apache.accumulo.core.client.mapreduce.RangeInputSplit
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Direct Known Subclasses:
InputFormatBase.RangeInputSplit, RangeInputSplit

public class 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
  RangeInputSplit()
           
  RangeInputSplit(RangeInputSplit split)
           
protected RangeInputSplit(String table, String tableId, Range range, String[] locations)
           
 
Method Summary
 Authorizations getAuths()
           
 Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> getFetchedColumns()
           
 Instance getInstance()
           
 String getInstanceName()
           
 List<IteratorSetting> getIterators()
           
 long getLength()
          This implementation of length is only an estimate, it does not provide exact values.
 String[] getLocations()
           
 org.apache.log4j.Level getLogLevel()
           
 String getPrincipal()
           
static float getProgress(ByteSequence start, ByteSequence end, ByteSequence position)
           
 float getProgress(Key currentKey)
           
 Range getRange()
           
 String getTable()
          Deprecated. 
 String getTableId()
           
 String getTableName()
           
 AuthenticationToken getToken()
           
 String getZooKeepers()
           
 Boolean isIsolatedScan()
           
 Boolean isMockInstance()
           
 Boolean isOffline()
           
 void readFields(DataInput in)
           
 void setAuths(Authorizations auths)
           
 void setFetchedColumns(Collection<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> fetchedColumns)
           
 void setFetchedColumns(Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> fetchedColumns)
           
 void setInstanceName(String instanceName)
           
 void setIsolatedScan(Boolean isolatedScan)
           
 void setIterators(List<IteratorSetting> iterators)
           
 void setLocations(String[] locations)
           
 void setLogLevel(org.apache.log4j.Level level)
           
 void setMockInstance(Boolean mockInstance)
           
 void setOffline(Boolean offline)
           
 void setPrincipal(String principal)
           
 void setRange(Range range)
           
 void setTable(String table)
          Deprecated. 
 void setTableId(String tableId)
           
 void setTableName(String table)
           
 void setToken(AuthenticationToken token)
           
 void setToken(String tokenFile)
           
 void setUsesLocalIterators(Boolean localIterators)
           
 void setZooKeepers(String zooKeepers)
           
 String toString()
           
 Boolean usesLocalIterators()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeInputSplit

public RangeInputSplit()

RangeInputSplit

public RangeInputSplit(RangeInputSplit split)
                throws IOException
Throws:
IOException

RangeInputSplit

protected RangeInputSplit(String table,
                          String tableId,
                          Range range,
                          String[] locations)
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

toString

public String toString()
Overrides:
toString in class Object

getTable

@Deprecated
public String getTable()
Deprecated. 

Use getTableName()


getTableName

public String getTableName()

setTable

@Deprecated
public void setTable(String table)
Deprecated. 

Use setTableName(java.lang.String)


setTableName

public void setTableName(String table)

setTableId

public void setTableId(String tableId)

getTableId

public String getTableId()

getInstance

public Instance getInstance()

getInstanceName

public String getInstanceName()

setInstanceName

public void setInstanceName(String instanceName)

getZooKeepers

public String getZooKeepers()

setZooKeepers

public void setZooKeepers(String zooKeepers)

getPrincipal

public String getPrincipal()

setPrincipal

public void setPrincipal(String principal)

getToken

public AuthenticationToken getToken()

setToken

public void setToken(AuthenticationToken token)

setToken

public void setToken(String tokenFile)

isOffline

public Boolean isOffline()

setOffline

public void setOffline(Boolean offline)

setLocations

public void setLocations(String[] locations)

isMockInstance

public Boolean isMockInstance()

setMockInstance

public void setMockInstance(Boolean mockInstance)

isIsolatedScan

public Boolean isIsolatedScan()

setIsolatedScan

public void setIsolatedScan(Boolean isolatedScan)

getAuths

public Authorizations getAuths()

setAuths

public void setAuths(Authorizations auths)

setRange

public void setRange(Range range)

usesLocalIterators

public Boolean usesLocalIterators()

setUsesLocalIterators

public void setUsesLocalIterators(Boolean localIterators)

getFetchedColumns

public Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> getFetchedColumns()

setFetchedColumns

public void setFetchedColumns(Collection<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> fetchedColumns)

setFetchedColumns

public void setFetchedColumns(Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> fetchedColumns)

getIterators

public List<IteratorSetting> getIterators()

setIterators

public void setIterators(List<IteratorSetting> iterators)

getLogLevel

public org.apache.log4j.Level getLogLevel()

setLogLevel

public void setLogLevel(org.apache.log4j.Level level)


Copyright © 2015 Apache Accumulo Project. All rights reserved.