public abstract class AccumuloElementInputFormatBase<TValue extends Element>
extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,TValue>
| Constructor and Description |
|---|
AccumuloElementInputFormatBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TValue |
createElementFromRow(AccumuloGraph graph,
org.apache.accumulo.core.util.PeekingIterator<Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> row,
Authorizations authorizations) |
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,TValue> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext jobContext) |
protected static void |
setInputInfo(org.apache.hadoop.mapreduce.Job job,
String instanceName,
String zooKeepers,
String principal,
org.apache.accumulo.core.client.security.tokens.AuthenticationToken token,
String[] authorizations,
String tableName) |
protected static void setInputInfo(org.apache.hadoop.mapreduce.Job job,
String instanceName,
String zooKeepers,
String principal,
org.apache.accumulo.core.client.security.tokens.AuthenticationToken token,
String[] authorizations,
String tableName)
throws org.apache.accumulo.core.client.AccumuloSecurityException
org.apache.accumulo.core.client.AccumuloSecurityExceptionpublic List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext jobContext) throws IOException, InterruptedException
getSplits in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,TValue extends Element>IOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,TValue> createRecordReader(org.apache.hadoop.mapreduce.InputSplit inputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,TValue extends Element>IOExceptionInterruptedExceptionprotected abstract TValue createElementFromRow(AccumuloGraph graph, org.apache.accumulo.core.util.PeekingIterator<Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> row, Authorizations authorizations)
Copyright © 2014–2015. All rights reserved.