public final class CassandraUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static com.datastax.driver.core.Cluster |
cluster |
protected static com.datastax.driver.core.Session |
session |
Constructor and Description |
---|
CassandraUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
close() |
static List<com.datastax.driver.core.Row> |
fetchFromTable(String keyspace,
String tableName,
List<org.javatuples.Pair<AuditingFieldsKeysEnum,String>> fields) |
static List<com.datastax.driver.core.Row> |
fetchFromTableQuery(String keyspace,
String tableName,
List<org.javatuples.Pair<String,String>> fields) |
protected static void |
initConnection(String keyspace) |
static void |
truncateAllKeyspaces() |
static void |
truncateAllTables(String keyspace) |
static void |
truncateTable(String keyspace,
String tableName) |
protected static com.datastax.driver.core.Cluster cluster
protected static com.datastax.driver.core.Session session
protected static void initConnection(String keyspace) throws FileNotFoundException
FileNotFoundException
public static void truncateTable(String keyspace, String tableName) throws FileNotFoundException
FileNotFoundException
public static void close()
public static void truncateAllKeyspaces() throws FileNotFoundException
FileNotFoundException
public static void truncateAllTables(String keyspace) throws FileNotFoundException
FileNotFoundException
public static List<com.datastax.driver.core.Row> fetchFromTable(String keyspace, String tableName, List<org.javatuples.Pair<AuditingFieldsKeysEnum,String>> fields) throws FileNotFoundException
FileNotFoundException
public static List<com.datastax.driver.core.Row> fetchFromTableQuery(String keyspace, String tableName, List<org.javatuples.Pair<String,String>> fields) throws FileNotFoundException
FileNotFoundException
Copyright © 2017. All rights reserved.