Package org.apache.calcite.test
Class SqlToRelTestBase.MockRelOptSchema.MockColumnSet
- java.lang.Object
-
- org.apache.calcite.test.SqlToRelTestBase.MockRelOptSchema.MockColumnSet
-
- All Implemented Interfaces:
org.apache.calcite.plan.RelOptTable
,org.apache.calcite.schema.Wrapper
- Enclosing class:
- SqlToRelTestBase.MockRelOptSchema
protected class SqlToRelTestBase.MockRelOptSchema.MockColumnSet extends java.lang.Object implements org.apache.calcite.plan.RelOptTable
Mock column set.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<org.apache.calcite.rel.RelCollation>
collationList
private java.util.List<java.lang.String>
names
private org.apache.calcite.rel.type.RelDataType
rowType
-
Constructor Summary
Constructors Modifier Constructor Description protected
MockColumnSet(java.util.List<java.lang.String> names, org.apache.calcite.rel.type.RelDataType rowType, java.util.List<org.apache.calcite.rel.RelCollation> collationList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.plan.RelOptTable
extend(java.util.List<org.apache.calcite.rel.type.RelDataTypeField> extendedFields)
java.util.List<org.apache.calcite.rel.RelCollation>
getCollationList()
java.util.List<org.apache.calcite.schema.ColumnStrategy>
getColumnStrategies()
org.apache.calcite.rel.RelDistribution
getDistribution()
org.apache.calcite.linq4j.tree.Expression
getExpression(java.lang.Class clazz)
java.util.List<java.lang.String>
getQualifiedName()
java.util.List<org.apache.calcite.rel.RelReferentialConstraint>
getReferentialConstraints()
org.apache.calcite.plan.RelOptSchema
getRelOptSchema()
double
getRowCount()
org.apache.calcite.rel.type.RelDataType
getRowType()
boolean
isKey(org.apache.calcite.util.ImmutableBitSet columns)
org.apache.calcite.rel.RelNode
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
<T> T
unwrap(java.lang.Class<T> clazz)
-
-
-
Method Detail
-
unwrap
public <T> T unwrap(java.lang.Class<T> clazz)
- Specified by:
unwrap
in interfaceorg.apache.calcite.schema.Wrapper
-
getQualifiedName
public java.util.List<java.lang.String> getQualifiedName()
- Specified by:
getQualifiedName
in interfaceorg.apache.calcite.plan.RelOptTable
-
getRowCount
public double getRowCount()
- Specified by:
getRowCount
in interfaceorg.apache.calcite.plan.RelOptTable
-
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType()
- Specified by:
getRowType
in interfaceorg.apache.calcite.plan.RelOptTable
-
getRelOptSchema
public org.apache.calcite.plan.RelOptSchema getRelOptSchema()
- Specified by:
getRelOptSchema
in interfaceorg.apache.calcite.plan.RelOptTable
-
toRel
public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
- Specified by:
toRel
in interfaceorg.apache.calcite.plan.RelOptTable
-
getCollationList
public java.util.List<org.apache.calcite.rel.RelCollation> getCollationList()
- Specified by:
getCollationList
in interfaceorg.apache.calcite.plan.RelOptTable
-
getDistribution
public org.apache.calcite.rel.RelDistribution getDistribution()
- Specified by:
getDistribution
in interfaceorg.apache.calcite.plan.RelOptTable
-
isKey
public boolean isKey(org.apache.calcite.util.ImmutableBitSet columns)
- Specified by:
isKey
in interfaceorg.apache.calcite.plan.RelOptTable
-
getReferentialConstraints
public java.util.List<org.apache.calcite.rel.RelReferentialConstraint> getReferentialConstraints()
- Specified by:
getReferentialConstraints
in interfaceorg.apache.calcite.plan.RelOptTable
-
getColumnStrategies
public java.util.List<org.apache.calcite.schema.ColumnStrategy> getColumnStrategies()
- Specified by:
getColumnStrategies
in interfaceorg.apache.calcite.plan.RelOptTable
-
getExpression
public org.apache.calcite.linq4j.tree.Expression getExpression(java.lang.Class clazz)
- Specified by:
getExpression
in interfaceorg.apache.calcite.plan.RelOptTable
-
extend
public org.apache.calcite.plan.RelOptTable extend(java.util.List<org.apache.calcite.rel.type.RelDataTypeField> extendedFields)
- Specified by:
extend
in interfaceorg.apache.calcite.plan.RelOptTable
-
-