@Named @Dependent public class CassandraBatchlet extends CassandraReaderWriterBase implements javax.batch.api.Batchlet
CassandraItemReader
,
CassandraItemWriter
,
CassandraReaderWriterBase
beanType, cluster, clusterInstance, clusterProperties, contactPoints, cql, customCodecList, customCodecs, keyspace, password, propertyDescriptors, session, sessionCreated, sessionInstance, user
Constructor and Description |
---|
CassandraBatchlet() |
Modifier and Type | Method and Description |
---|---|
String |
process()
This method executes the cql statement(s) as specified in
CassandraReaderWriterBase.cql batch property,
and returns the string representation of the first row in the result set. |
void |
stop()
This method does nothing.
|
applyClusterProperties, close, initBeanPropertyDescriptors, initCustomCodecs, initSession
public String process() throws Exception
This method executes the cql statement(s) as specified in CassandraReaderWriterBase.cql
batch property,
and returns the string representation of the first row in the result set.
For certain mutation cql statements (e.g., update, insert, delete),
the underlying driver does not return any row, and so the return value of this method
will also be null
.
process
in interface javax.batch.api.Batchlet
Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.