public class ObjectMapperCqlStatementMapper extends Object implements CQLStatementTupleMapper
Tuple mapper that is able to map objects annotated with com.datastax.driver.mapping.annotations.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
Maps a given tuple to one or multiple CQL statements.
map
in interface CQLStatementTupleMapper
map
- the storm configuration map.session
- the cassandra session.tuple
- the incoming tuple to map.Statement
.Copyright © 2019 The Apache Software Foundation. All rights reserved.