Class CalciteForeignValue

  • All Implemented Interfaces:
    ForeignValue

    public class CalciteForeignValue
    extends Object
    implements ForeignValue
    Value based on a Calcite schema.

    In ML, it appears as a record with a field for each table.

    • Field Detail

      • calcite

        private final Calcite calcite
      • schema

        private final org.apache.calcite.schema.SchemaPlus schema
      • lower

        private final boolean lower
    • Constructor Detail

      • CalciteForeignValue

        public CalciteForeignValue​(Calcite calcite,
                                   org.apache.calcite.schema.SchemaPlus schema,
                                   boolean lower)
        Creates a CalciteForeignValue.
    • Method Detail

      • toType

        private Type toType​(org.apache.calcite.schema.SchemaPlus schema,
                            TypeSystem typeSystem)
      • toType

        private Type toType​(org.apache.calcite.schema.Table table,
                            TypeSystem typeSystem)
      • convert

        private static String convert​(boolean lower,
                                      String name)
      • valueFor

        private com.google.common.collect.ImmutableList<Object> valueFor​(org.apache.calcite.schema.SchemaPlus schema)
      • plus

        private static <E> List<E> plus​(List<E> list,
                                        E e)
        Returns a copy of a list with one element appended.