public class CassandraSchema extends AbstractSchema
Schema.TableType| Modifier and Type | Field and Description |
|---|---|
(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.
|
| 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, isMutablefinal com.datastax.driver.core.Session session
final String keyspace
private final SchemaPlus parentSchema
final String name
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"RelProtoDataType 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–2016 The Apache Software Foundation. All rights reserved.