Class ReorderSlice

  • All Implemented Interfaces:
    DagSlice

    public class ReorderSlice
    extends Object
    implements DagSlice
    A slice where columns can be reordered (including removing columns) and renamed in one go.
    • Constructor Detail

      • ReorderSlice

        public ReorderSlice​(List<String> reorderedColumns,
                            Map<String,​String> renames)
        Constructs a reordering slice.
        Parameters:
        reorderedColumns - the list of column names after reordering, but before renaming
        renames - the column renames, as a map from old names to new names
    • Method Detail

      • getReorderedColumns

        public List<String> getReorderedColumns()
        Returns:
        the list of column names after reordering, but before renaming
      • getRenames

        public Map<String,​String> getRenames()
        Returns:
        the column renames, as a map from old names to new names
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object