Klasse Dictionary

java.lang.Object
org.deidentifier.arx.framework.data.Dictionary
Alle implementierten Schnittstellen:
Serializable

public class Dictionary extends Object implements Serializable
A dictionary mapping integers to strings for different dimensions.
Siehe auch:
  • Konstruktordetails

    • Dictionary

      public Dictionary(Dictionary input, int[] columns)
      Instantiates a new dictionary by extracting a projection of the given dictionary
      Parameter:
      dimensions -
    • Dictionary

      public Dictionary(int dimensions)
      Instantiates a new dictionary.
      Parameter:
      dimensions -
  • Methodendetails

    • definalizeAll

      public void definalizeAll()
      Definalizes the dictionary
    • finalizeAll

      public void finalizeAll()
      Finalizes all dimensions.
    • getMapping

      public String[][] getMapping()
      Returns the mapping array.
      Gibt zurück:
    • getNumDimensions

      public int getNumDimensions()
      Returns the number of dimensions in the dictionary.
      Gibt zurück:
    • getSuppressedCodes

      public int[] getSuppressedCodes()
      Returns the codes for suppressed values
      Gibt zurück:
    • getUnfinalizedValues

      public com.carrotsearch.hppc.ObjectIntOpenHashMap<String> getUnfinalizedValues(int dimension)
      Returns the map with unfinalized values for the given dimension
      Parameter:
      dimension -
      Gibt zurück:
    • probe

      public Integer probe(int dimension, String string)
      Returns the registered value if present, null otherwise.
      Parameter:
      dimension -
      string -
      Gibt zurück:
    • register

      public int register(int dimension, String string)
      Registers a new string at the dictionary.
      Parameter:
      dimension - the dimension
      string - the string
      Gibt zurück:
      the int
    • registerAll

      public void registerAll(int targetDimension, Dictionary dictionary, int sourceDimension)
      Merges this dictionary with another dictionary.
      Parameter:
      targetDimension -
      dictionary -
      sourceDimension -
    • registerSpecialValues

      public void registerSpecialValues()
      Registers special values