public class GraknCqlBridgeRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>
Background: The CqlRecordReader class has changed
significantly in Cassandra-3 from Cassandra-2. This class acts as a bridge between
CqlRecordReader in Cassandra-2 to Cassandra-3. In essence, this class recreates CqlRecordReader
from Cassandra-3 without referring to it (because otherwise we'd get functionality from
CqlRecordReader on Cassandra-2 and we don't want it).
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.janusgraph.diskstorage.StaticBuffer |
getCurrentKey() |
Iterable<org.janusgraph.diskstorage.Entry> |
getCurrentValue() |
int |
getNativeProtocolVersion()
Return native version protocol of the cluster connection
|
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
public void initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>public org.janusgraph.diskstorage.StaticBuffer getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>public Iterable<org.janusgraph.diskstorage.Entry> getCurrentValue() throws IOException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>IOExceptionpublic float getProgress()
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>public boolean nextKeyValue()
throws IOException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.janusgraph.diskstorage.StaticBuffer,Iterable<org.janusgraph.diskstorage.Entry>>IOExceptionpublic int getNativeProtocolVersion()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.