Klasse HierarchyBuilderOrderBased<T>

Typparameter:
T -
Alle implementierten Schnittstellen:
Serializable

public class HierarchyBuilderOrderBased<T> extends HierarchyBuilderGroupingBased<T>
This class enables building hierarchies for categorical and non-categorical values by ordering the data items and merging into groups with predefined sizes.
Siehe auch:
  • Methodendetails

    • create

      public static <T> HierarchyBuilderOrderBased<T> create(DataType<T> type, boolean order)
      Creates a new instance. Either preserves the given order, or sorts the items according to the order induced by the given data type
      Typparameter:
      T -
      Parameter:
      type - The data type is also used for ordering data items
      order - Should the items be sorted according to the order induced by the data type
      Gibt zurück:
    • create

      public static <T> HierarchyBuilderOrderBased<T> create(DataType<T> type, Comparator<T> comparator)
      Creates a new instance. Uses the comparator for ordering data items
      Typparameter:
      T -
      Parameter:
      type - The data type
      comparator - Use this comparator for ordering data items
      Gibt zurück:
    • create

      public static <T> HierarchyBuilderOrderBased<T> create(DataType<T> type, String[] order)
      Creates a new instance. Uses the defined order for data items
      Typparameter:
      T -
      Parameter:
      type - The data type
      order - Use this for ordering data items
      Gibt zurück:
    • create

      public static <T> HierarchyBuilderOrderBased<T> create(File file) throws IOException
      Loads a builder specification from the given file.
      Typparameter:
      T -
      Parameter:
      file -
      Gibt zurück:
      Löst aus:
      IOException
    • create

      public static <T> HierarchyBuilderOrderBased<T> create(String file) throws IOException
      Loads a builder specification from the given file.
      Typparameter:
      T -
      Parameter:
      file -
      Gibt zurück:
      Löst aus:
      IOException
    • getComparator

      public Comparator<String> getComparator()
      Returns the comparator.
      Gibt zurück:
    • prepareGroups

      protected HierarchyBuilderGroupingBased.AbstractGroup[][] prepareGroups()
      Beschreibung aus Klasse kopiert: HierarchyBuilderGroupingBased
      Tells the implementing class to prepare the generalization process.
      Angegeben von:
      prepareGroups in Klasse HierarchyBuilderGroupingBased<T>
      Gibt zurück: