public class ObjectMapperCqlStatementMapper extends Object implements CQLStatementTupleMapper
Table
to CQL statements.CQLStatementTupleMapper.DynamicCQLStatementTupleMapper
Constructor and Description |
---|
ObjectMapperCqlStatementMapper(String operationField,
String valueField,
String timestampField,
String ttlField,
String consistencyLevelField,
Collection<com.datastax.driver.core.TypeCodec<?>> codecs,
Collection<Class<?>> udtClasses) |
Modifier and Type | Method and Description |
---|---|
List<com.datastax.driver.core.Statement> |
map(Map<String,Object> map,
com.datastax.driver.core.Session session,
ITuple tuple)
Maps a given tuple to one or multiple CQL statements.
|
public ObjectMapperCqlStatementMapper(String operationField, String valueField, String timestampField, String ttlField, String consistencyLevelField, Collection<com.datastax.driver.core.TypeCodec<?>> codecs, Collection<Class<?>> udtClasses)
public List<com.datastax.driver.core.Statement> map(Map<String,Object> map, com.datastax.driver.core.Session session, ITuple tuple)
CQLStatementTupleMapper
map
in interface CQLStatementTupleMapper
map
- the storm configuration map.session
- the cassandra session.tuple
- the incoming tuple to map.Statement
.Copyright © 2023 The Apache Software Foundation. All rights reserved.