public class BatchCassandraSink extends ReferenceBatchSink<co.cask.cdap.api.data.format.StructuredRecord,Map<String,ByteBuffer>,List<ByteBuffer>>
BatchSink that writes data to Cassandra.
This BatchCassandraSink takes a StructuredRecord in,
converts it to columns, and writes it to the Cassandra server.| Modifier and Type | Class and Description |
|---|---|
static class |
BatchCassandraSink.Cassandra
Properties for Cassandra
|
static class |
BatchCassandraSink.CassandraBatchConfig
Config class for Batch Cassandra
|
| Constructor and Description |
|---|
BatchCassandraSink(BatchCassandraSink.CassandraBatchConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
prepareRun(co.cask.cdap.etl.api.batch.BatchSinkContext context) |
void |
transform(co.cask.cdap.api.data.format.StructuredRecord record,
co.cask.cdap.etl.api.Emitter<co.cask.cdap.api.dataset.lib.KeyValue<Map<String,ByteBuffer>,List<ByteBuffer>>> emitter) |
configurePipelinepublic BatchCassandraSink(BatchCassandraSink.CassandraBatchConfig config)
public void prepareRun(co.cask.cdap.etl.api.batch.BatchSinkContext context)
prepareRun in class co.cask.cdap.etl.api.batch.BatchConfigurable<co.cask.cdap.etl.api.batch.BatchSinkContext>public void transform(co.cask.cdap.api.data.format.StructuredRecord record,
co.cask.cdap.etl.api.Emitter<co.cask.cdap.api.dataset.lib.KeyValue<Map<String,ByteBuffer>,List<ByteBuffer>>> emitter)
throws Exception
transform in interface co.cask.cdap.etl.api.Transformation<co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.dataset.lib.KeyValue<Map<String,ByteBuffer>,List<ByteBuffer>>>transform in class co.cask.cdap.etl.api.batch.BatchSink<co.cask.cdap.api.data.format.StructuredRecord,Map<String,ByteBuffer>,List<ByteBuffer>>ExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.