Package io.deephaven.engine.table.impl
Class RenameColumnHelper
java.lang.Object
io.deephaven.engine.table.impl.RenameColumnHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLookupAndValidate
(TableDefinition definition, Collection<Pair> pairs) Create a lookup map from the provided pairs while validating that the pairs are valid (i.e.getMaskedColumns
(TableDefinition definition, Collection<Pair> pairs) Get the set of column names that will be masked by a rename operation (i.e.getNewColumns
(Collection<Pair> pairs) Get the set of new column names from the provided pairs.
-
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
Get the set of new column names from the provided pairs. -
getMaskedColumns
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).
-