# Uses of Class org.deidentifier.arx.AttributeType.Hierarchy (ARX API Documentation)

## Uses of Class
org.deidentifier.arx.AttributeType.Hierarchy

- Packages that use AttributeType.Hierarchy
  Package | Description
  --- | ---
  org.deidentifier.arx | This package provides the public API for the ARX anonymization framework.
  org.deidentifier.arx.aggregates | This package provides methods for aggregating data.
  org.deidentifier.arx.criteria | This package implements different variants of class-based privacy criteria, such as k-anonymity, l-diversity, t-closeness and d-presence.

- - ### Uses of AttributeType.Hierarchy in org.deidentifier.arx

    Subclasses of AttributeType.Hierarchy in org.deidentifier.arx
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `AttributeType.Hierarchy.DefaultHierarchy` The default implementation of a generalization hierarchy.

    Methods in org.deidentifier.arx that return AttributeType.Hierarchy
    Modifier and Type | Method and Description
    --- | ---
    `abstract AttributeType.Hierarchy` | AttributeType.Hierarchy.`clone()`
    `AttributeType.Hierarchy` | AttributeType.Hierarchy.DefaultHierarchy.`clone()`
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.File file, java.nio.charset.Charset charset)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.File file, java.nio.charset.Charset charset, char delimiter)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.File file, java.nio.charset.Charset charset, char delimiter, char quote)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.File file, java.nio.charset.Charset charset, char delimiter, char quote, char escape)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.File file, java.nio.charset.Charset charset, char delimiter, char quote, char escape, char[] linebreak)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.File file, java.nio.charset.Charset charset, CSVSyntax config)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.InputStream stream, java.nio.charset.Charset charset)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.InputStream stream, java.nio.charset.Charset charset, char delimiter)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.InputStream stream, java.nio.charset.Charset charset, char delimiter, char quote)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.InputStream stream, java.nio.charset.Charset charset, char delimiter, char quote, char escape)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.InputStream stream, java.nio.charset.Charset charset, char delimiter, char quote, char escape, char[] linebreak)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.io.InputStream stream, java.nio.charset.Charset charset, CSVSyntax config)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.util.Iterator<java.lang.String[]> iterator)` Creates a new hierarchy from an iterator over tuples.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.util.List<java.lang.String[]> list)` Creates a new hierarchy from a list.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.lang.String[][] array)` Creates a new hierarchy from a two-dimensional string array.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.lang.String path, java.nio.charset.Charset charset, char separator)` Creates a new hierarchy from a CSV file.
    `static AttributeType.Hierarchy` | AttributeType.Hierarchy.`create(java.lang.String path, java.nio.charset.Charset charset, CSVSyntax config)` Creates a new hierarchy from a CSV file.
    `AttributeType.Hierarchy` | DataDefinition.`getHierarchyObject(java.lang.String attribute)` Returns the according hierarchy object.

    Methods in org.deidentifier.arx with parameters of type AttributeType.Hierarchy
    Modifier and Type | Method and Description
    --- | ---
    `void` | DataDefinition.`setHierarchy(java.lang.String attribute, AttributeType.Hierarchy hierarchy)` Associates the given hierarchy

  - ### Uses of AttributeType.Hierarchy in org.deidentifier.arx.aggregates

    Methods in org.deidentifier.arx.aggregates that return AttributeType.Hierarchy
    Modifier and Type | Method and Description
    --- | ---
    `AttributeType.Hierarchy` | HierarchyBuilderGroupingBased.`build()` Creates a new hierarchy, based on the predefined specification.
    `AttributeType.Hierarchy` | HierarchyBuilderRedactionBased.`build()` Creates a new hierarchy, based on the predefined specification.
    `abstract AttributeType.Hierarchy` | HierarchyBuilder.`build()` Creates a new hierarchy, based on the predefined specification.
    `AttributeType.Hierarchy` | HierarchyBuilderGroupingBased.`build(java.lang.String[] data)` Creates a new hierarchy, based on the predefined specification.
    `AttributeType.Hierarchy` | HierarchyBuilderRedactionBased.`build(java.lang.String[] data)` Creates a new hierarchy, based on the predefined specification.
    `abstract AttributeType.Hierarchy` | HierarchyBuilder.`build(java.lang.String[] data)` Creates a new hierarchy, based on the predefined specification.

    Methods in org.deidentifier.arx.aggregates with parameters of type AttributeType.Hierarchy
    Modifier and Type | Method and Description
    --- | ---
    `StatisticsContingencyTable` | StatisticsBuilderInterruptible.`getContingencyTable(int column1, AttributeType.Hierarchy hierarchy1, int column2, AttributeType.Hierarchy hierarchy2)` Returns a contingency table for the given columns.
    `StatisticsContingencyTable` | StatisticsBuilderInterruptible.`getContingencyTable(int column1, int size1, AttributeType.Hierarchy hierarchy1, int column2, int size2, AttributeType.Hierarchy hierarchy2)` Returns a contingency table for the given columns.
    `java.lang.String[]` | StatisticsBuilderInterruptible.`getDistinctValuesOrdered(int column, AttributeType.Hierarchy hierarchy)` Returns an ordered list of the distinct set of data items from the given column.
    `StatisticsFrequencyDistribution` | StatisticsBuilderInterruptible.`getFrequencyDistribution(int column, AttributeType.Hierarchy hierarchy)` Returns a frequency distribution for the values in the given column.

  - ### Uses of AttributeType.Hierarchy in org.deidentifier.arx.criteria

    Methods in org.deidentifier.arx.criteria that return AttributeType.Hierarchy
    Modifier and Type | Method and Description
    --- | ---
    `AttributeType.Hierarchy` | HierarchicalDistanceTCloseness.`getHierarchy()` Returns the hierarchy backing the EMD calculations.

    Constructors in org.deidentifier.arx.criteria with parameters of type AttributeType.Hierarchy
    Constructor and Description
    `HierarchicalDistanceTCloseness(java.lang.String attribute, double t, AttributeType.Hierarchy h)` Creates a new instance of the t-closeness criterion with hierarchical earth-movers-distance as proposed in: Li N, Li T, Venkatasubramanian S.