Class InputTableConfig
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
-
Constructor Summary
ConstructorDescriptionDeprecated.InputTableConfig
(DataInput input) Deprecated.Creates a batch scan config object out of a previously serialized batch scan config object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.fetchColumns
(Collection<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>> columns) Deprecated.Restricts the columns that will be mapped over for this job for the default input table.Collection<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text,
org.apache.hadoop.io.Text>> Deprecated.Returns the columns to be fetched for this configurationDeprecated.Returns the iterators to be set on this configurationDeprecated.Returns the ranges to be queried in the configurationDeprecated.int
hashCode()
Deprecated.boolean
Deprecated.Determines whether a configuration has the offline table scan feature enabled.void
readFields
(DataInput dataInput) Deprecated.setAutoAdjustRanges
(boolean autoAdjustRanges) Deprecated.Controls the automatic adjustment of ranges for this job.setIterators
(List<IteratorSetting> iterators) Deprecated.Set iterators on to be used in the query.setOfflineScan
(boolean offlineScan) Deprecated.Enable reading offline tables.Deprecated.Sets the input ranges to scan for all tables associated with this job.void
setSamplerConfiguration
(SamplerConfiguration samplerConfiguration) Deprecated.Set the sampler configuration to use when reading from the data.setUseIsolatedScanners
(boolean useIsolatedScanners) Deprecated.Controls the use of theIsolatedScanner
in this job.setUseLocalIterators
(boolean useLocalIterators) Deprecated.Controls the use of theClientSideIteratorScanner
in this job.boolean
Deprecated.Determines whether a configuration has auto-adjust ranges enabled.boolean
Deprecated.Determines whether a configuration has isolation enabled.boolean
Deprecated.Determines whether a configuration uses local iterators.void
write
(DataOutput dataOutput) Deprecated.
-
Constructor Details
-
InputTableConfig
public InputTableConfig()Deprecated. -
InputTableConfig
Deprecated.Creates a batch scan config object out of a previously serialized batch scan config object.- Parameters:
input
- the data input of the serialized batch scan config- Throws:
IOException
-
-
Method Details
-
setRanges
Deprecated.Sets the input ranges to scan for all tables associated with this job. This will be added to any per-table ranges that have been set using- Parameters:
ranges
- the ranges that will be mapped over- Since:
- 1.6.0
-
getRanges
Deprecated.Returns the ranges to be queried in the configuration -
fetchColumns
public InputTableConfig fetchColumns(Collection<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text, org.apache.hadoop.io.Text>> columns) Deprecated.Restricts the columns that will be mapped over for this job for the default input table.- Parameters:
columns
- a pair ofText
objects corresponding to column family and column qualifier. If the column qualifier is null, the entire column family is selected. An empty set is the default and is equivalent to scanning the all columns.- Since:
- 1.6.0
-
getFetchedColumns
public Collection<org.apache.accumulo.core.util.Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> getFetchedColumns()Deprecated.Returns the columns to be fetched for this configuration -
setIterators
Deprecated.Set iterators on to be used in the query.- Parameters:
iterators
- the configurations for the iterators- Since:
- 1.6.0
-
getIterators
Deprecated.Returns the iterators to be set on this configuration -
setAutoAdjustRanges
Deprecated.Controls the automatic adjustment of ranges for this job. This feature merges overlapping ranges, then splits them to align with tablet boundaries. Disabling this feature will cause exactly one Map task to be created for each specified range. The default setting is enabled. *By default, this feature is enabled.
- Parameters:
autoAdjustRanges
- the feature is enabled if true, disabled otherwise- Since:
- 1.6.0
- See Also:
-
shouldAutoAdjustRanges
public boolean shouldAutoAdjustRanges()Deprecated.Determines whether a configuration has auto-adjust ranges enabled.- Returns:
- false if the feature is disabled, true otherwise
- Since:
- 1.6.0
- See Also:
-
setUseLocalIterators
Deprecated.Controls the use of theClientSideIteratorScanner
in this job. Enabling this feature will cause the iterator stack to be constructed within the Map task, rather than within the Accumulo TServer. To use this feature, all classes needed for those iterators must be available on the classpath for the task.By default, this feature is disabled.
- Parameters:
useLocalIterators
- the feature is enabled if true, disabled otherwise- Since:
- 1.6.0
-
shouldUseLocalIterators
public boolean shouldUseLocalIterators()Deprecated.Determines whether a configuration uses local iterators.- Returns:
- true if the feature is enabled, false otherwise
- Since:
- 1.6.0
- See Also:
-
setOfflineScan
Deprecated.Enable reading offline tables. By default, this feature is disabled and only online tables are scanned. This will make the map reduce job directly read the table's files. If the table is not offline, then the job will fail. If the table comes online during the map reduce job, it is likely that the job will fail.To use this option, the map reduce user will need access to read the Accumulo directory in HDFS.
Reading the offline table will create the scan time iterator stack in the map process. So any iterators that are configured for the table will need to be on the mapper's classpath. The accumulo.properties may need to be on the mapper's classpath if HDFS or the Accumulo directory in HDFS are non-standard.
One way to use this feature is to clone a table, take the clone offline, and use the clone as the input table for a map reduce job. If you plan to map reduce over the data many times, it may be better to the compact the table, clone it, take it offline, and use the clone for all map reduce jobs. The reason to do this is that compaction will reduce each tablet in the table to one file, and it is faster to read from one file.
There are two possible advantages to reading a tables file directly out of HDFS. First, you may see better read performance. Second, it will support speculative execution better. When reading an online table speculative execution can put more load on an already slow tablet server.
By default, this feature is disabled.
- Parameters:
offlineScan
- the feature is enabled if true, disabled otherwise- Since:
- 1.6.0
-
isOfflineScan
public boolean isOfflineScan()Deprecated.Determines whether a configuration has the offline table scan feature enabled.- Returns:
- true if the feature is enabled, false otherwise
- Since:
- 1.6.0
- See Also:
-
setUseIsolatedScanners
Deprecated.Controls the use of theIsolatedScanner
in this job.By default, this feature is disabled.
- Parameters:
useIsolatedScanners
- the feature is enabled if true, disabled otherwise- Since:
- 1.6.0
-
shouldUseIsolatedScanners
public boolean shouldUseIsolatedScanners()Deprecated.Determines whether a configuration has isolation enabled.- Returns:
- true if the feature is enabled, false otherwise
- Since:
- 1.6.0
- See Also:
-
setSamplerConfiguration
Deprecated.Set the sampler configuration to use when reading from the data. -
getSamplerConfiguration
Deprecated.- Since:
- 1.8.0
-
write
Deprecated.- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
readFields
Deprecated.- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-