Package org.apache.calcite.adapter.tpcds
Class TpcdsSchema
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractSchema
-
- org.apache.calcite.adapter.tpcds.TpcdsSchema
-
- All Implemented Interfaces:
Schema
public class TpcdsSchema extends AbstractSchema
Schema that provides TPC-DS tables, populated according to a particular scale factor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
TpcdsSchema.TpcdsQueryableTable<E extends com.teradata.tpcds.Table>
Definition of a table in the TPC-DS schema.-
Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.AbstractSchema
AbstractSchema.Factory
-
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
Schema.TableType
-
-
Field Summary
Fields Modifier and Type Field Description private double
scaleFactor
private static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Integer>
TABLE_ROW_COUNTS
private com.google.common.collect.ImmutableMap<java.lang.String,Table>
tableMap
-
Constructor Summary
Constructors Constructor Description TpcdsSchema(double scaleFactor)
Creates a TpcdsSchema.TpcdsSchema(double scaleFactor, int part, int partCount)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Object
convert(java.lang.String string, com.teradata.tpcds.column.Column column)
protected java.util.Map<java.lang.String,Table>
getTableMap()
Returns a map of tables in this schema by name.-
Methods inherited from class org.apache.calcite.schema.impl.AbstractSchema
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
-
-
-
-
Field Detail
-
scaleFactor
private final double scaleFactor
-
tableMap
private final com.google.common.collect.ImmutableMap<java.lang.String,Table> tableMap
-
TABLE_ROW_COUNTS
private static final com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Integer> TABLE_ROW_COUNTS
-
-
Method Detail
-
getTableMap
protected java.util.Map<java.lang.String,Table> getTableMap()
Description copied from class:AbstractSchema
Returns a map of tables in this schema by name.The implementations of
AbstractSchema.getTableNames()
andAbstractSchema.getTable(String)
depend on this map. The default implementation of this method returns the empty map. Override this method to change their behavior.- Overrides:
getTableMap
in classAbstractSchema
- Returns:
- Map of tables in this schema by name
-
convert
private static java.lang.Object convert(java.lang.String string, com.teradata.tpcds.column.Column column)
-
-