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

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(Range range, String[] locations)
           
 
Method Summary
 Authorizations getAuths()
           
 String getColfamRegex()
           
 String getColqualRegex()
           
 Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> getFetchedColumns()
           
 Instance getInstance()
           
 String getInstanceName()
           
 List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIterator> getIterators()
           
 long getLength()
          This implementation of length is only an estimate, it does not provide exact values.
 String[] getLocations()
           
 org.apache.log4j.Level getLogLevel()
           
 Integer getMaxVersions()
           
 List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIteratorOption> getOptions()
           
 byte[] getPassword()
           
static float getProgress(ByteSequence start, ByteSequence end, ByteSequence position)
           
 float getProgress(Key currentKey)
           
 Range getRange()
           
 String getRowRegex()
           
 String getTable()
           
 String getUsername()
           
 String getValueRegex()
           
 String getZooKeepers()
           
 Boolean isIsolatedScan()
           
 Boolean isMockInstance()
           
 Boolean isOffline()
           
 void readFields(DataInput in)
           
 void setAuths(Authorizations auths)
           
 void setColfamRegex(String colfamRegex)
           
 void setColqualRegex(String colqualRegex)
           
 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<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIterator> iterators)
           
 void setLocations(String[] locations)
           
 void setLogLevel(org.apache.log4j.Level level)
           
 void setMaxVersions(Integer maxVersions)
           
 void setMockInstance(Boolean mockInstance)
           
 void setOffline(Boolean offline)
           
 void setOptions(List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIteratorOption> options)
           
 void setPassword(byte[] password)
           
 void setRange(Range range)
           
 void setRowRegex(String rowRegex)
           
 void setTable(String table)
           
 void setUsername(String username)
           
 void setUsesLocalIterators(Boolean localIterators)
           
 void setValueRegex(String valueRegex)
           
 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(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

public String getTable()

setTable

public void setTable(String table)

getInstance

public Instance getInstance()

getInstanceName

public String getInstanceName()

setInstanceName

public void setInstanceName(String instanceName)

getZooKeepers

public String getZooKeepers()

setZooKeepers

public void setZooKeepers(String zooKeepers)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public byte[] getPassword()

setPassword

public void setPassword(byte[] password)

isOffline

public Boolean isOffline()

setOffline

public void setOffline(Boolean offline)

setLocations

public void setLocations(String[] locations)

getRowRegex

public String getRowRegex()

setRowRegex

public void setRowRegex(String rowRegex)

getColfamRegex

public String getColfamRegex()

setColfamRegex

public void setColfamRegex(String colfamRegex)

getColqualRegex

public String getColqualRegex()

setColqualRegex

public void setColqualRegex(String colqualRegex)

getValueRegex

public String getValueRegex()

setValueRegex

public void setValueRegex(String valueRegex)

isMockInstance

public Boolean isMockInstance()

setMockInstance

public void setMockInstance(Boolean mockInstance)

isIsolatedScan

public Boolean isIsolatedScan()

setIsolatedScan

public void setIsolatedScan(Boolean isolatedScan)

getMaxVersions

public Integer getMaxVersions()

setMaxVersions

public void setMaxVersions(Integer maxVersions)

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(Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> fetchedColumns)

getIterators

public List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIterator> getIterators()

setIterators

public void setIterators(List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIterator> iterators)

getOptions

public List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIteratorOption> getOptions()

setOptions

public void setOptions(List<org.apache.accumulo.core.client.mapreduce.InputFormatBase.AccumuloIteratorOption> options)

getLogLevel

public org.apache.log4j.Level getLogLevel()

setLogLevel

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


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.