protected abstract class HCatalogVertexInputFormat.HCatalogVertexReader extends VertexReader<I,V,E>
Modifier | Constructor and Description |
---|---|
protected |
HCatalogVertexReader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this
VertexReader to future operations. |
protected org.apache.hadoop.mapreduce.TaskAttemptContext |
getContext()
Get the context.
|
float |
getProgress()
How much of the input has the
VertexReader consumed i.e. |
protected org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.WritableComparable,org.apache.hcatalog.data.HCatRecord> |
getRecordReader()
Get the record reader.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext ctxt)
Use the input split and context to setup reading the vertices.
|
boolean |
nextVertex() |
getCurrentVertex
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public final void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext ctxt) throws IOException, InterruptedException
VertexReader
initialize
in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
inputSplit
- Input split to be used for reading vertices.ctxt
- Context from the task.IOException
InterruptedException
public boolean nextVertex() throws IOException, InterruptedException
nextVertex
in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public final void close() throws IOException
VertexReader
VertexReader
to future operations.close
in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
IOException
public final float getProgress() throws IOException, InterruptedException
VertexReader
VertexReader
consumed i.e.
has been processed by?getProgress
in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
0.0
to 1.0
.IOException
InterruptedException
protected final org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.WritableComparable,org.apache.hcatalog.data.HCatRecord> getRecordReader()
protected final org.apache.hadoop.mapreduce.TaskAttemptContext getContext()
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.