@InterfaceStability.Unstable @Deprecated public class CqlBridgeRecordReader extends org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<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()
Deprecated.
|
StaticBuffer |
getCurrentKey()
Deprecated.
|
Iterable<Entry> |
getCurrentValue()
Deprecated.
|
int |
getNativeProtocolVersion()
Deprecated.
Return native version protocol of the cluster connection
|
float |
getProgress()
Deprecated.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Deprecated.
|
boolean |
nextKeyValue()
Deprecated.
|
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<StaticBuffer,Iterable<Entry>>IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>public StaticBuffer getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>public Iterable<Entry> getCurrentValue() throws IOException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionpublic float getProgress()
getProgress in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>public boolean nextKeyValue()
throws IOException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<StaticBuffer,Iterable<Entry>>IOExceptionpublic int getNativeProtocolVersion()
Copyright © 2012–2020. All rights reserved.