public abstract class CassandraDao extends Object
Modifier and Type | Field and Description |
---|---|
protected CassandraClient |
client |
protected com.datastax.driver.mapping.MappingManager |
manager |
protected com.datastax.driver.core.Session |
session |
Constructor and Description |
---|
CassandraDao() |
Modifier and Type | Method and Description |
---|---|
protected fj.data.Either<Boolean,CassandraOperationStatus> |
isTableEmpty(String tableName)
the method checks if the given table is empty under the keyspace the
session was opened to.
|
protected com.datastax.driver.core.Session session
protected com.datastax.driver.mapping.MappingManager manager
@Autowired protected CassandraClient client
protected fj.data.Either<Boolean,CassandraOperationStatus> isTableEmpty(String tableName)
tableName
- the name of the table we want to checkCopyright © 2017. All rights reserved.