I
- Vertex idE
- Edge valuepublic abstract class HCatalogEdgeInputFormat<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends EdgeInputFormat<I,E>
EdgeInputFormat
for reading edges from Hive/Pig.Modifier and Type | Class and Description |
---|---|
protected static class |
HCatalogEdgeInputFormat.HCatalogEdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
|
protected static class |
HCatalogEdgeInputFormat.SingleRowHCatalogEdgeNoValueReader<I extends org.apache.hadoop.io.WritableComparable>
HCatalogEdgeInputFormat.HCatalogEdgeReader for tables holding a complete edge
in each row where the edges contain no data other than IDs they point to. |
protected static class |
HCatalogEdgeInputFormat.SingleRowHCatalogEdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
HCatalogEdgeInputFormat.HCatalogEdgeReader for tables holding a complete edge
in each row. |
Constructor and Description |
---|
HCatalogEdgeInputFormat() |
Modifier and Type | Method and Description |
---|---|
protected abstract HCatalogEdgeInputFormat.HCatalogEdgeReader<I,E> |
createEdgeReader()
Create
EdgeReader . |
EdgeReader<I,E> |
createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create an edge reader for a given split.
|
protected GiraphHCatInputFormat |
getHCatInputFormat()
Get underlying HCatalog input format.
|
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context,
int minSplitCountHint)
Get the list of input splits for the format.
|
checkInputSpecs, readInputSplit, writeInputSplit
getConf, setConf
public final List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context, int minSplitCountHint) throws IOException, InterruptedException
GiraphInputFormat
getSplits
in class GiraphInputFormat<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
context
- The job contextminSplitCountHint
- Minimum number of splits to create (hint)IOException
InterruptedException
protected GiraphHCatInputFormat getHCatInputFormat()
protected abstract HCatalogEdgeInputFormat.HCatalogEdgeReader<I,E> createEdgeReader()
EdgeReader
.HCatalogEdgeInputFormat.HCatalogEdgeReader
instance.public EdgeReader<I,E> createEdgeReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
EdgeInputFormat
EdgeReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.createEdgeReader
in class EdgeInputFormat<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
split
- the split to be readcontext
- the information about the taskIOException
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.