org.eigenbase.test
Class MockCatalogReader.MockTable
java.lang.Object
org.eigenbase.test.MockCatalogReader.MockTable
- All Implemented Interfaces:
- SqlValidatorTable
- Enclosing class:
- MockCatalogReader
public static class MockCatalogReader.MockTable
- extends Object
- implements SqlValidatorTable
Mock implementation of SqlValidatorTable
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnNameList
private final List<String> columnNameList
columnTypeList
private final List<RelDataType> columnTypeList
rowType
private RelDataType rowType
names
private final String[] names
MockCatalogReader.MockTable
public MockCatalogReader.MockTable(MockCatalogReader.MockSchema schema,
String name)
getRowType
public RelDataType getRowType()
- Specified by:
getRowType
in interface SqlValidatorTable
onRegister
public void onRegister(RelDataTypeFactory typeFactory)
getQualifiedName
public String[] getQualifiedName()
- Specified by:
getQualifiedName
in interface SqlValidatorTable
getMonotonicity
public SqlMonotonicity getMonotonicity(String columnName)
- Description copied from interface:
SqlValidatorTable
- Returns whether a given column is monotonic.
- Specified by:
getMonotonicity
in interface SqlValidatorTable
getAllowedAccess
public SqlAccessType getAllowedAccess()
- Description copied from interface:
SqlValidatorTable
- Returns the access type of the table
- Specified by:
getAllowedAccess
in interface SqlValidatorTable
addColumn
public void addColumn(int index,
String name,
RelDataType type)
addColumn
public void addColumn(String name,
RelDataType type)