org.eigenbase.test
Class MockCatalogReader.MockTable

java.lang.Object
  extended by 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.


Field Summary
private  List<String> columnNameList
           
private  List<RelDataType> columnTypeList
           
private  String[] names
           
private  RelDataType rowType
           
 
Constructor Summary
MockCatalogReader.MockTable(MockCatalogReader.MockSchema schema, String name)
           
 
Method Summary
 void addColumn(int index, String name, RelDataType type)
           
 void addColumn(String name, RelDataType type)
           
 SqlAccessType getAllowedAccess()
          Returns the access type of the table
 SqlMonotonicity getMonotonicity(String columnName)
          Returns whether a given column is monotonic.
 String[] getQualifiedName()
           
 RelDataType getRowType()
           
 void onRegister(RelDataTypeFactory typeFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNameList

private final List<String> columnNameList

columnTypeList

private final List<RelDataType> columnTypeList

rowType

private RelDataType rowType

names

private final String[] names
Constructor Detail

MockCatalogReader.MockTable

public MockCatalogReader.MockTable(MockCatalogReader.MockSchema schema,
                                   String name)
Method Detail

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)