Klasse Dictionary
java.lang.Object
org.deidentifier.arx.framework.data.Dictionary
- Alle implementierten Schnittstellen:
Serializable
A dictionary mapping integers to strings for different dimensions.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDictionary(int dimensions) Instantiates a new dictionary.Dictionary(Dictionary input, int[] columns) Instantiates a new dictionary by extracting a projection of the given dictionary -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidDefinalizes the dictionaryvoidFinalizes all dimensions.String[][]Returns the mapping array.intReturns the number of dimensions in the dictionary.int[]Returns the codes for suppressed valuescom.carrotsearch.hppc.ObjectIntOpenHashMap<String> getUnfinalizedValues(int dimension) Returns the map with unfinalized values for the given dimensionReturns the registered value if present, null otherwise.intRegisters a new string at the dictionary.voidregisterAll(int targetDimension, Dictionary dictionary, int sourceDimension) Merges this dictionary with another dictionary.voidRegisters special values
-
Konstruktordetails
-
Dictionary
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
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
Returns the map with unfinalized values for the given dimension- Parameter:
dimension-- Gibt zurück:
-
probe
Returns the registered value if present, null otherwise.- Parameter:
dimension-string-- Gibt zurück:
-
register
Registers a new string at the dictionary.- Parameter:
dimension- the dimensionstring- the string- Gibt zurück:
- the int
-
registerAll
Merges this dictionary with another dictionary.- Parameter:
targetDimension-dictionary-sourceDimension-
-
registerSpecialValues
public void registerSpecialValues()Registers special values
-