public interface InitializerExpressionFactory
Modifier and Type | Method and Description |
---|---|
ColumnStrategy |
generationStrategy(RelOptTable table,
int iColumn)
Returns how a column is populated.
|
boolean |
isGeneratedAlways(RelOptTable table,
int iColumn)
Deprecated.
Use
c.generationStrategy(t, i) == VIRTUAL
|| c.generationStrategy(t, i) == STORED |
RexNode |
newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
java.util.List<RexNode> constructorArgs,
InitializerContext context)
Creates an expression which evaluates to the initializer expression for a
particular attribute of a structured type.
|
RexNode |
newColumnDefaultValue(RelOptTable table,
int iColumn,
InitializerContext context)
Creates an expression which evaluates to the default value for a
particular column.
|
@Deprecated boolean isGeneratedAlways(RelOptTable table, int iColumn)
c.generationStrategy(t, i) == VIRTUAL
|| c.generationStrategy(t, i) == STORED
generationStrategy(RelOptTable, int)
ColumnStrategy generationStrategy(RelOptTable table, int iColumn)
table
- the table containing the columniColumn
- the 0-based offset of the column in the tableRelOptTable.getColumnStrategies()
RexNode newColumnDefaultValue(RelOptTable table, int iColumn, InitializerContext context)
table
- the table containing the columniColumn
- the 0-based offset of the column in the tablecontext
- Context for creating the expressionRexNode newAttributeInitializer(RelDataType type, SqlFunction constructor, int iAttribute, java.util.List<RexNode> constructorArgs, InitializerContext context)
type
- the structured typeconstructor
- the constructor invoked to initialize the typeiAttribute
- the 0-based offset of the attribute in the typeconstructorArgs
- arguments passed to the constructor invocationcontext
- Context for creating the expressionCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.