public interface CassandraSession
| Modifier and Type | Field and Description |
|---|---|
static String |
PRESTO_COMMENT_METADATA |
| Modifier and Type | Method and Description |
|---|---|
com.datastax.driver.core.ResultSet |
execute(com.datastax.driver.core.Statement statement) |
com.datastax.driver.core.ResultSet |
execute(String cql,
Object... values) |
String |
getCaseSensitiveSchemaName(String caseInsensitiveSchemaName) |
List<String> |
getCaseSensitiveSchemaNames() |
List<String> |
getCaseSensitiveTableNames(String caseInsensitiveSchemaName) |
com.datastax.driver.core.VersionNumber |
getCassandraVersion() |
String |
getPartitioner() |
List<CassandraPartition> |
getPartitions(CassandraTable table,
List<Set<Object>> filterPrefix)
Get the list of partitions matching the given filters on partition keys.
|
Set<com.datastax.driver.core.Host> |
getReplicas(String caseSensitiveSchemaName,
ByteBuffer partitionKey) |
Set<com.datastax.driver.core.Host> |
getReplicas(String caseSensitiveSchemaName,
com.datastax.driver.core.TokenRange tokenRange) |
List<SizeEstimate> |
getSizeEstimates(String keyspaceName,
String tableName) |
CassandraTable |
getTable(SchemaTableName schemaTableName) |
Set<com.datastax.driver.core.TokenRange> |
getTokenRanges() |
boolean |
isMaterializedView(SchemaTableName schemaTableName) |
com.datastax.driver.core.PreparedStatement |
prepare(com.datastax.driver.core.RegularStatement statement) |
static final String PRESTO_COMMENT_METADATA
com.datastax.driver.core.VersionNumber getCassandraVersion()
String getPartitioner()
Set<com.datastax.driver.core.TokenRange> getTokenRanges()
Set<com.datastax.driver.core.Host> getReplicas(String caseSensitiveSchemaName, com.datastax.driver.core.TokenRange tokenRange)
Set<com.datastax.driver.core.Host> getReplicas(String caseSensitiveSchemaName, ByteBuffer partitionKey)
List<String> getCaseSensitiveTableNames(String caseInsensitiveSchemaName) throws SchemaNotFoundException
SchemaNotFoundExceptionCassandraTable getTable(SchemaTableName schemaTableName) throws TableNotFoundException
TableNotFoundExceptionList<CassandraPartition> getPartitions(CassandraTable table, List<Set<Object>> filterPrefix)
table - the table to get partitions fromfilterPrefix - the list of possible values for each partition key.
Order of values should match CassandraTable.getPartitionKeyColumns()CassandraPartitionboolean isMaterializedView(SchemaTableName schemaTableName)
List<SizeEstimate> getSizeEstimates(String keyspaceName, String tableName)
com.datastax.driver.core.PreparedStatement prepare(com.datastax.driver.core.RegularStatement statement)
com.datastax.driver.core.ResultSet execute(com.datastax.driver.core.Statement statement)
Copyright © 2012–2021. All rights reserved.