public abstract class AbstractColumnFamilyRecordWriter<K,Y>
extends org.apache.hadoop.mapreduce.RecordWriter<K,Y>
implements org.apache.hadoop.mapred.RecordWriter<K,Y>
ColumnFamilyRecordWriter
maps the output <key, value>
pairs to a Cassandra column family. In particular, it applies all mutations
in the value, which it associates with the key, and in turn the responsible
endpoint.
Furthermore, this writer groups the mutations by the endpoint responsible for the rows being affected. This allows the mutations to be executed in parallel, directly to a responsible endpoint.
ColumnFamilyOutputFormat
Modifier and Type | Class and Description |
---|---|
class |
AbstractColumnFamilyRecordWriter.AbstractRangeClient<K>
A client that runs in a threadpool and connects to the list of endpoints for a particular
range.
|
Modifier and Type | Field and Description |
---|---|
protected long |
batchThreshold |
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.cassandra.thrift.ConsistencyLevel |
consistencyLevel |
protected Progressable |
progressable |
protected int |
queueSize |
protected RingCache |
ringCache |
Modifier | Constructor and Description |
---|---|
protected |
AbstractColumnFamilyRecordWriter(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
close() |
void |
close(org.apache.hadoop.mapred.Reporter reporter)
Deprecated.
|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Close this
RecordWriter to future operations, but not before
flushing out the batched mutations. |
protected final org.apache.hadoop.conf.Configuration conf
protected final RingCache ringCache
protected final int queueSize
protected final long batchThreshold
protected final org.apache.cassandra.thrift.ConsistencyLevel consistencyLevel
protected Progressable progressable
protected AbstractColumnFamilyRecordWriter(org.apache.hadoop.conf.Configuration conf)
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
RecordWriter
to future operations, but not before
flushing out the batched mutations.@Deprecated public void close(org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
protected abstract void close() throws java.io.IOException
java.io.IOException
Copyright © 2013 The Apache Software Foundation