Class RenameColumnHelper

java.lang.Object
io.deephaven.engine.table.impl.RenameColumnHelper

public class RenameColumnHelper extends Object
  • Constructor Details

    • RenameColumnHelper

      public RenameColumnHelper()
  • Method Details

    • createLookupAndValidate

      public static Map<String,String> createLookupAndValidate(TableDefinition definition, Collection<Pair> pairs)
      Create a lookup map from the provided pairs while validating that the pairs are valid (i.e. ensure source columns exist, no duplicate source columns, no duplicate destination columns).
    • getNewColumns

      public static Set<String> getNewColumns(Collection<Pair> pairs)
      Get the set of new column names from the provided pairs.
    • getMaskedColumns

      public static Set<String> getMaskedColumns(TableDefinition definition, Collection<Pair> pairs)
      Get the set of column names that will be masked by a rename operation (i.e. table columns that are being replaced by a different renamed column).