public class CassandraTable extends AbstractQueryableTable implements TranslatableTable
| Modifier and Type | Class and Description |
|---|---|
static class |
CassandraTable.CassandraQueryable<T>
Implementation of
Queryable based on
a CassandraTable. |
| Modifier and Type | Field and Description |
|---|---|
(package private) List<RelFieldCollation> |
clusteringOrder |
private String |
columnFamily |
(package private) Pair<List<String>,List<String>> |
keyFields |
(package private) RelProtoDataType |
protoRowType |
private CassandraSchema |
schema |
private boolean |
view |
elementType| Constructor and Description |
|---|
CassandraTable(CassandraSchema schema,
String columnFamily) |
CassandraTable(CassandraSchema schema,
String columnFamily,
boolean view) |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
List<RelFieldCollation> |
getClusteringOrder() |
Pair<List<String>,List<String>> |
getKeyFields() |
RelDataType |
getRowType(RelDataTypeFactory typeFactory) |
Enumerable<Object> |
query(com.datastax.driver.core.Session session) |
Enumerable<Object> |
query(com.datastax.driver.core.Session session,
List<Map.Entry<String,Class>> fields,
List<Map.Entry<String,String>> selectFields,
List<String> predicates,
List<String> order,
Integer offset,
Integer fetch)
Executes a CQL query on the underlying table.
|
RelNode |
toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
String |
toString() |
getElementType, getExpressiongetJdbcTableType, getStatisticclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJdbcTableType, getStatisticRelProtoDataType protoRowType
List<RelFieldCollation> clusteringOrder
private final CassandraSchema schema
private final String columnFamily
private final boolean view
public CassandraTable(CassandraSchema schema, String columnFamily, boolean view)
public CassandraTable(CassandraSchema schema, String columnFamily)
public RelDataType getRowType(RelDataTypeFactory typeFactory)
getRowType in interface Tablepublic List<RelFieldCollation> getClusteringOrder()
public Enumerable<Object> query(com.datastax.driver.core.Session session)
public Enumerable<Object> query(com.datastax.driver.core.Session session, List<Map.Entry<String,Class>> fields, List<Map.Entry<String,String>> selectFields, List<String> predicates, List<String> order, Integer offset, Integer fetch)
session - Cassandra sessionfields - List of fields to projectpredicates - A list of predicates which should be used in the querypublic <T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName)
asQueryable in interface QueryableTablepublic RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable)
toRel in interface TranslatableTableCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.