public class AccumuloMultiTableInputFormat extends AbstractInputFormat<Key,Value>
InputFormat
provides keys and values of type Key
and
Value
to the Map function.
The user must specify the following via static configurator methods:
AbstractInputFormat.setConnectorInfo(JobConf, String, org.apache.accumulo.core.client.security.tokens.AuthenticationToken)
AbstractInputFormat.setConnectorInfo(JobConf, String, String)
AbstractInputFormat.setScanAuthorizations(JobConf, org.apache.accumulo.core.security.Authorizations)
AbstractInputFormat.setZooKeeperInstance(JobConf, ClientConfiguration)
setInputTableConfigs(org.apache.hadoop.mapred.JobConf, java.util.Map)
AbstractInputFormat.AbstractRecordReader<K,V>
CLASS, log
Constructor and Description |
---|
AccumuloMultiTableInputFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapred.RecordReader<Key,Value> |
getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter) |
static void |
setInputTableConfigs(org.apache.hadoop.mapred.JobConf job,
Map<String,InputTableConfig> configs)
Sets the
InputTableConfig objects on the given Hadoop configuration |
getAuthenticationToken, getClassLoaderContext, getClientConfiguration, getInputTableConfig, getInputTableConfigs, getInstance, getLogLevel, getPrincipal, getScanAuthorizations, getSplits, getTabletLocator, isConnectorInfoSet, setClassLoaderContext, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setScanAuthorizations, setZooKeeperInstance, setZooKeeperInstance, validateOptions
public static void setInputTableConfigs(org.apache.hadoop.mapred.JobConf job, Map<String,InputTableConfig> configs)
InputTableConfig
objects on the given Hadoop configurationjob
- the Hadoop job instance to be configuredconfigs
- the table query configs to be set on the configuration.public org.apache.hadoop.mapred.RecordReader<Key,Value> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) throws IOException
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.