public class HadoopRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>
| Constructor and Description |
|---|
HadoopRecordReader(HadoopInputFormat.RefCountedCloseable<JanusGraphVertexDeserializer> countedDeserializer,
org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>> reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.NullWritable |
getCurrentKey() |
org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
public HadoopRecordReader(HadoopInputFormat.RefCountedCloseable<JanusGraphVertexDeserializer> countedDeserializer, org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>> reader)
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.NullWritable getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>public org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable getCurrentValue()
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>IOExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable>IOExceptionInterruptedExceptionCopyright © 2012–2024. All rights reserved.