Class CassandraAppendTableSink
- java.lang.Object
-
- org.apache.flink.streaming.connectors.cassandra.CassandraAppendTableSink
-
- All Implemented Interfaces:
org.apache.flink.table.sinks.AppendStreamTableSink<org.apache.flink.types.Row>
,org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.types.Row>
,org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
public class CassandraAppendTableSink extends Object implements org.apache.flink.table.sinks.AppendStreamTableSink<org.apache.flink.types.Row>
AnAppendStreamTableSink
to write an append stream Table to a Cassandra table.
-
-
Constructor Summary
Constructors Constructor Description CassandraAppendTableSink(ClusterBuilder builder, String cql)
CassandraAppendTableSink(ClusterBuilder builder, String cql, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CassandraAppendTableSink
configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
org.apache.flink.streaming.api.datastream.DataStreamSink<?>
consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
String[]
getFieldNames()
org.apache.flink.api.common.typeinfo.TypeInformation<?>[]
getFieldTypes()
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>
getOutputType()
-
-
-
Constructor Detail
-
CassandraAppendTableSink
public CassandraAppendTableSink(ClusterBuilder builder, String cql)
-
CassandraAppendTableSink
public CassandraAppendTableSink(ClusterBuilder builder, String cql, Properties properties)
-
-
Method Detail
-
getOutputType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getOutputType()
- Specified by:
getOutputType
in interfaceorg.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
-
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNames
in interfaceorg.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
-
getFieldTypes
public org.apache.flink.api.common.typeinfo.TypeInformation<?>[] getFieldTypes()
- Specified by:
getFieldTypes
in interfaceorg.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
-
configure
public CassandraAppendTableSink configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
- Specified by:
configure
in interfaceorg.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>
-
consumeDataStream
public org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
- Specified by:
consumeDataStream
in interfaceorg.apache.flink.table.sinks.StreamTableSink<org.apache.flink.types.Row>
-
-