public class CassandraSchema extends AbstractSchema
AbstractSchema.FactorySchema.TableType| Modifier and Type | Field and Description |
|---|---|
(package private) Hook.Closeable |
hook |
(package private) String |
keyspace |
protected static org.slf4j.Logger |
LOGGER |
(package private) String |
name |
private SchemaPlus |
parentSchema |
(package private) com.datastax.driver.core.Session |
session |
| Constructor and Description |
|---|
CassandraSchema(String host,
String keyspace,
SchemaPlus parentSchema,
String name)
Creates a Cassandra schema.
|
CassandraSchema(String host,
String keyspace,
String username,
String password,
SchemaPlus parentSchema,
String name)
Creates a Cassandra schema.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addMaterializedViews()
Add all materialized views defined in the schema to this column family
|
List<RelFieldCollation> |
getClusteringOrder(String columnFamily,
boolean view)
Get the collation of all clustering key columns.
|
(package private) Pair<List<String>,List<String>> |
getKeyFields(String columnFamily,
boolean view)
Get all primary key columns from the underlying CQL table
|
private com.datastax.driver.core.KeyspaceMetadata |
getKeyspace() |
(package private) RelProtoDataType |
getRelDataType(String columnFamily,
boolean view) |
protected Map<String,Table> |
getTableMap() |
contentsHaveChangedSince, getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, isMutable, snapshotfinal com.datastax.driver.core.Session session
final String keyspace
private final SchemaPlus parentSchema
final String name
final Hook.Closeable hook
protected static final org.slf4j.Logger LOGGER
public CassandraSchema(String host, String keyspace, SchemaPlus parentSchema, String name)
host - Cassandra host, e.g. "localhost"keyspace - Cassandra keyspace name, e.g. "twissandra"public CassandraSchema(String host, String keyspace, String username, String password, SchemaPlus parentSchema, String name)
host - Cassandra host, e.g. "localhost"keyspace - Cassandra keyspace name, e.g. "twissandra"username - Cassandra usernamepassword - Cassandra passwordRelProtoDataType getRelDataType(String columnFamily, boolean view)
Pair<List<String>,List<String>> getKeyFields(String columnFamily, boolean view)
public List<RelFieldCollation> getClusteringOrder(String columnFamily, boolean view)
private void addMaterializedViews()
protected Map<String,Table> getTableMap()
getTableMap in class AbstractSchemaprivate com.datastax.driver.core.KeyspaceMetadata getKeyspace()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.