Java Code Examples for org.apache.calcite.sql2rel.NullInitializerExpressionFactory#INSTANCE
The following examples show how to use
org.apache.calcite.sql2rel.NullInitializerExpressionFactory#INSTANCE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockCatalogReader.java From calcite with Apache License 2.0 | 5 votes |
public static MockModifiableViewRelOptTable create(MockModifiableViewTable modifiableViewTable, MockCatalogReader catalogReader, String catalogName, String schemaName, String name, boolean stream, double rowCount, ColumnResolver resolver) { final Table underlying = modifiableViewTable.unwrap(Table.class); final InitializerExpressionFactory initializerExpressionFactory = underlying instanceof Wrapper ? ((Wrapper) underlying).unwrap(InitializerExpressionFactory.class) : NullInitializerExpressionFactory.INSTANCE; return new MockModifiableViewRelOptTable(modifiableViewTable, catalogReader, catalogName, schemaName, name, stream, rowCount, resolver, Util.first(initializerExpressionFactory, NullInitializerExpressionFactory.INSTANCE)); }
Example 2
Source File: MockCatalogReader.java From calcite with Apache License 2.0 | 5 votes |
public static MockRelViewTable create(ViewTable viewTable, MockCatalogReader catalogReader, String catalogName, String schemaName, String name, boolean stream, double rowCount, ColumnResolver resolver) { Table underlying = viewTable.unwrap(Table.class); InitializerExpressionFactory initializerExpressionFactory = underlying instanceof Wrapper ? ((Wrapper) underlying).unwrap(InitializerExpressionFactory.class) : NullInitializerExpressionFactory.INSTANCE; return new MockRelViewTable(viewTable, catalogReader, catalogName, schemaName, name, stream, rowCount, resolver, Util.first(initializerExpressionFactory, NullInitializerExpressionFactory.INSTANCE)); }
Example 3
Source File: MaterializedViewTable.java From calcite with Apache License 2.0 | 4 votes |
MaterializedViewTable(String name, RelProtoDataType protoRowType) { super(name, protoRowType, protoRowType, NullInitializerExpressionFactory.INSTANCE); }
Example 4
Source File: MockCatalogReader.java From calcite with Apache License 2.0 | 4 votes |
public static MockTable create(MockCatalogReader catalogReader, List<String> names, boolean stream, double rowCount) { return new MockTable(catalogReader, names, stream, false, rowCount, null, NullInitializerExpressionFactory.INSTANCE); }