Package net.hydromatic.morel.foreign
Class CalciteForeignValue
java.lang.Object
net.hydromatic.morel.foreign.CalciteForeignValue
- All Implemented Interfaces:
ForeignValue
Value based on a Calcite schema.
In ML, it appears as a record with a field for each table.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCalciteForeignValue(Calcite calcite, org.apache.calcite.schema.SchemaPlus schema, boolean lower) Creates a CalciteForeignValue. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringprivate Stringprivate static <E> List<E> Returns a copy of a list with one element appended.private TypetoType(org.apache.calcite.schema.SchemaPlus schema, TypeSystem typeSystem) private TypetoType(org.apache.calcite.schema.Table table, TypeSystem typeSystem) type(TypeSystem typeSystem) value()private com.google.common.collect.ImmutableList<Object> valueFor(org.apache.calcite.schema.SchemaPlus schema)
-
Field Details
-
calcite
-
schema
private final org.apache.calcite.schema.SchemaPlus schema -
lower
private final boolean lower
-
-
Constructor Details
-
CalciteForeignValue
public CalciteForeignValue(Calcite calcite, org.apache.calcite.schema.SchemaPlus schema, boolean lower) Creates a CalciteForeignValue.
-
-
Method Details
-
type
- Specified by:
typein interfaceForeignValue
-
toType
-
toType
-
convert
-
convert
-
value
- Specified by:
valuein interfaceForeignValue
-
valueFor
private com.google.common.collect.ImmutableList<Object> valueFor(org.apache.calcite.schema.SchemaPlus schema) -
plus
Returns a copy of a list with one element appended.
-