public class TitanCassandraRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,FaunusVertex>
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration |
protected TitanCassandraHadoopGraph |
graph |
protected TitanCassandraInputFormat |
inputFormat |
protected org.apache.cassandra.hadoop.ColumnFamilyRecordReader |
reader |
protected FaunusVertex |
vertex |
protected FaunusVertexQueryFilter |
vertexQuery |
| Constructor and Description |
|---|
TitanCassandraRecordReader(TitanCassandraInputFormat inputFormat,
FaunusVertexQueryFilter vertexQuery,
org.apache.cassandra.hadoop.ColumnFamilyRecordReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.io.NullWritable |
getCurrentKey() |
FaunusVertex |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
protected org.apache.cassandra.hadoop.ColumnFamilyRecordReader reader
protected TitanCassandraInputFormat inputFormat
protected TitanCassandraHadoopGraph graph
protected FaunusVertexQueryFilter vertexQuery
protected Configuration configuration
protected FaunusVertex vertex
public TitanCassandraRecordReader(TitanCassandraInputFormat inputFormat, FaunusVertexQueryFilter vertexQuery, org.apache.cassandra.hadoop.ColumnFamilyRecordReader 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,FaunusVertex>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,FaunusVertex>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.NullWritable getCurrentKey()
throws IOException,
InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,FaunusVertex>IOExceptionInterruptedExceptionpublic FaunusVertex getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,FaunusVertex>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,FaunusVertex>IOExceptionpublic float getProgress()
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,FaunusVertex>Copyright © 2012–2016. All rights reserved.