public class CassandraHelper extends Object
| Constructor and Description |
|---|
CassandraHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession(com.datastax.driver.core.Session driverSes)
Closes Cassandra driver session.
|
static boolean |
isCassandraCompatibleTypes(Class type1,
Class type2)
Checks if two Java classes are Cassandra compatible - mapped to the same Cassandra type.
|
static boolean |
isHostsAvailabilityError(Throwable e)
Checks if Cassandra host availability error occur, thus host became unavailable.
|
static boolean |
isKeyspaceAbsenceError(Throwable e)
Checks if Cassandra keyspace absence error occur.
|
static boolean |
isPreparedStatementClusterError(Throwable e)
Checks if Cassandra error occur because of prepared statement created in one session was used in another session.
|
static boolean |
isTableAbsenceError(Throwable e)
Checks if Cassandra table absence error occur.
|
public static void closeSession(com.datastax.driver.core.Session driverSes)
public static boolean isKeyspaceAbsenceError(Throwable e)
e - Exception to check.true in case of keyspace absence error.public static boolean isTableAbsenceError(Throwable e)
e - Exception to check.true in case of table absence error.public static boolean isHostsAvailabilityError(Throwable e)
e - Exception to check.true in case of host not available error.public static boolean isPreparedStatementClusterError(Throwable e)
e - Exception to check.true in case of invalid usage of prepared statement.public static boolean isCassandraCompatibleTypes(Class type1, Class type2)
type1 - First type.type2 - Second type.true if classes are compatible and false if not.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025