Class MappingVirtualColumn

  • All Implemented Interfaces:
    ValueIF

    public class MappingVirtualColumn
    extends Object
    implements ValueIF
    INTERNAL: Virtual column that used a hash table to map from old value to new value. A default value can also be specified when no entry exists.
    • Field Detail

      • relation

        protected final Relation relation
      • colname

        protected final String colname
      • defaultValue

        protected String defaultValue
      • defaultSpecified

        protected boolean defaultSpecified
      • isVirtualColumn

        protected final boolean isVirtualColumn
      • inputColumn

        protected final String inputColumn
      • cix

        protected int cix
    • Method Detail

      • getValue

        public String getValue​(String[] tuple)
        Description copied from interface: ValueIF
        INTERNAL: Returns the value of the virtual column.
        Specified by:
        getValue in interface ValueIF
      • addMapping

        public void addMapping​(String from_value,
                               String to_value)
      • setDefault

        public void setDefault​(String defaultValue)