Class RangeInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
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
ModifierConstructorDescriptionprotected
RangeInputSplit
(String table, String tableId, Range range, String[] locations) RangeInputSplit
(RangeInputSplit split) -
Method Summary
Modifier and TypeMethodDescriptiongetAuths()
Set<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text,
org.apache.hadoop.io.Text>> Deprecated.since 1.7.0, use getInstance(ClientConfiguration) instead.long
This implementation of length is only an estimate, it does not provide exact values.String[]
org.apache.log4j.Level
static float
getProgress
(ByteSequence start, ByteSequence end, ByteSequence position) float
getProgress
(Key currentKey) getRange()
getTable()
Deprecated.since 1.6.1, use getTableName() instead.getToken()
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock frameworkvoid
readFields
(DataInput in) void
setAuths
(Authorizations auths) void
setFetchedColumns
(Collection<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>> fetchedColumns) void
setFetchedColumns
(Set<org.apache.accumulo.core.util.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) Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock frameworkvoid
setOffline
(Boolean offline) void
setPrincipal
(String principal) void
void
setSamplerConfiguration
(SamplerConfiguration samplerConfiguration) void
Deprecated.since 1.6.1, use setTableName() instead.void
setTableId
(String tableId) void
setTableName
(String table) void
void
setToken
(AuthenticationToken token) void
setUsesLocalIterators
(Boolean localIterators) void
setZooKeepers
(String zooKeepers) toString()
void
write
(DataOutput out) Methods inherited from class org.apache.hadoop.mapreduce.InputSplit
getLocationInfo
-
Constructor Details
-
RangeInputSplit
public RangeInputSplit() -
RangeInputSplit
- Throws:
IOException
-
RangeInputSplit
-
-
Method Details
-
getRange
-
getProgress
-
getProgress
-
getLength
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 classorg.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
-
getLocations
- Specified by:
getLocations
in classorg.apache.hadoop.mapreduce.InputSplit
- Throws:
IOException
-
readFields
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
getTable
Deprecated.since 1.6.1, use getTableName() instead.UsegetTableName()
-
getTableName
-
setTable
Deprecated.since 1.6.1, use setTableName() instead. -
setTableName
-
setTableId
-
getTableId
-
getInstance
Deprecated.since 1.7.0, use getInstance(ClientConfiguration) instead.- See Also:
-
getInstance
-
getInstanceName
-
setInstanceName
-
getZooKeepers
-
setZooKeepers
-
getPrincipal
-
setPrincipal
-
getToken
-
setToken
-
setToken
-
isOffline
-
setOffline
-
setLocations
-
isMockInstance
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock framework -
setMockInstance
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock framework -
isIsolatedScan
-
setIsolatedScan
-
getAuths
-
setAuths
-
setRange
-
usesLocalIterators
-
setUsesLocalIterators
-
getFetchedColumns
public Set<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> getFetchedColumns() -
setFetchedColumns
public void setFetchedColumns(Collection<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>> fetchedColumns) -
setFetchedColumns
public void setFetchedColumns(Set<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>> fetchedColumns) -
getIterators
-
setIterators
-
getLogLevel
public org.apache.log4j.Level getLogLevel() -
setLogLevel
public void setLogLevel(org.apache.log4j.Level level) -
toString
-
setSamplerConfiguration
-
getSamplerConfiguration
-