public interface DefaultValueFactory
TODO jvs 26-Feb-2005: rename this to InitializerExpressionFactory, since it is in the process of being generalized to handle constructor invocations and eventually generated columns.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGeneratedAlways(RelOptTable table,
int iColumn)
Whether a column is always generated.
|
RexNode |
newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
List<RexNode> constructorArgs)
Creates an expression which evaluates to the initializer expression for a
particular attribute of a structured type.
|
RexNode |
newColumnDefaultValue(RelOptTable table,
int iColumn)
Creates an expression which evaluates to the default value for a
particular column.
|
boolean isGeneratedAlways(RelOptTable table, int iColumn)
RexNode newColumnDefaultValue(RelOptTable table, int iColumn)
table - the table containing the columniColumn - the 0-based offset of the column in the tableRexNode newAttributeInitializer(RelDataType type, SqlFunction constructor, int iAttribute, List<RexNode> constructorArgs)
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 invocationCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.