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 Iterable<Property> |
makePropertiesFromElementData(AccumuloGraph graph,
ElementData elementData,
EnumSet<IteratorFetchHint> fetchHints) |
static void |
setFetchHints(org.apache.hadoop.mapreduce.Job job,
ElementType elementType,
EnumSet<FetchHint> fetchHints) |
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) |
public 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 static void setFetchHints(org.apache.hadoop.mapreduce.Job job,
ElementType elementType,
EnumSet<FetchHint> fetchHints)
public 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)
protected static Iterable<Property> makePropertiesFromElementData(AccumuloGraph graph, ElementData elementData, EnumSet<IteratorFetchHint> fetchHints)
Copyright © 2014–2017. All rights reserved.