
public abstract class CassandraReaderWriterBase extends Object
CassandraItemReader,
CassandraItemWriter,
CassandraBatchlet| Modifier and Type | Field and Description |
|---|---|
protected Class |
beanType
For
ItemReader, it's the java type that each data item should be converted to;
for ItemWriter, it's the java type for each incoming data item. |
protected com.datastax.driver.core.Cluster |
cluster |
protected javax.enterprise.inject.Instance<com.datastax.driver.core.Cluster> |
clusterInstance
This field holds an optional injection of
com.datastax.driver.core.Cluster. |
protected Map<String,String> |
clusterProperties
Additional properties for the Cassandra cluster
|
protected List<String> |
contactPoints
Cassandra contact points
|
protected String |
cql
The CQL statement for reading data from, or inserting data into Cassandra.
|
protected List<com.datastax.driver.core.TypeCodec> |
customCodecList |
protected List<String> |
customCodecs
Custom codec's for converting between CQL values and Java objects
|
protected String |
keyspace |
protected String |
password
Password for the Cassandra connection
|
protected PropertyDescriptor[] |
propertyDescriptors |
protected com.datastax.driver.core.Session |
session |
protected boolean |
sessionCreated |
protected javax.enterprise.inject.Instance<com.datastax.driver.core.Session> |
sessionInstance
This field holds an optional injection of
com.datastax.driver.core.Session. |
protected String |
user
User name for the Cassandra connection
|
| Constructor and Description |
|---|
CassandraReaderWriterBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyClusterProperties(com.datastax.driver.core.Cluster.Builder clusterBuilder) |
void |
close() |
protected void |
initBeanPropertyDescriptors() |
protected void |
initCustomCodecs() |
protected void |
initSession() |
@Inject protected javax.enterprise.inject.Instance<com.datastax.driver.core.Cluster> clusterInstance
com.datastax.driver.core.Cluster.
The application may implement a javax.enterprise.inject.Produces method to satisfy
this dependency injection.@Inject protected javax.enterprise.inject.Instance<com.datastax.driver.core.Session> sessionInstance
com.datastax.driver.core.Session.
The application may implement a javax.enterprise.inject.Produces method to satisfy
this dependency injection.@Inject protected String cql
CassandraItemWriter, its value should include parameter
markers that will be filled in with real data.
When used in CassandraBatchlet, its value may be one cql statement,
or multiple cql statements grouped into a cql batch group.@Inject protected Class beanType
ItemReader, it's the java type that each data item should be converted to;
for ItemWriter, it's the java type for each incoming data item.
In either case, the valid values are:
CassandraBatchlet.@Inject protected String keyspace
@Inject protected String user
@Inject protected String password
@Inject protected Map<String,String> clusterProperties
@Inject protected List<String> customCodecs
protected com.datastax.driver.core.Cluster cluster
protected com.datastax.driver.core.Session session
protected boolean sessionCreated
protected PropertyDescriptor[] propertyDescriptors
protected List<com.datastax.driver.core.TypeCodec> customCodecList
protected void applyClusterProperties(com.datastax.driver.core.Cluster.Builder clusterBuilder)
throws Exception
Exceptionprotected void initBeanPropertyDescriptors()
throws IntrospectionException
IntrospectionExceptionprotected void initCustomCodecs()
throws IllegalAccessException,
InstantiationException,
ClassNotFoundException
Copyright © 2018 JBoss by Red Hat. All rights reserved.