public class Dictionary
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Dictionary(Dictionary input,
int[] columns)
Instantiates a new dictionary by extracting a projection of the given dictionary
|
Dictionary(int dimensions)
Instantiates a new dictionary.
|
Modifier and Type | Method and Description |
---|---|
void |
definalizeAll()
Definalizes the dictionary
|
void |
finalizeAll()
Finalizes all dimensions.
|
java.lang.String[][] |
getMapping()
Returns the mapping array.
|
int |
getNumDimensions()
Returns the number of dimensions in the dictionary.
|
int[] |
getSuppressedCodes()
Returns the codes for suppressed values
|
com.carrotsearch.hppc.ObjectIntOpenHashMap<java.lang.String> |
getUnfinalizedValues(int dimension)
Returns the map with unfinalized values for the given dimension
|
java.lang.Integer |
probe(int dimension,
java.lang.String string)
Returns the registered value if present, null otherwise.
|
int |
register(int dimension,
java.lang.String string)
Registers a new string at the dictionary.
|
void |
registerAll(int targetDimension,
Dictionary dictionary,
int sourceDimension)
Merges this dictionary with another dictionary.
|
void |
registerSpecialValues()
Registers special values
|
public Dictionary(Dictionary input, int[] columns)
dimensions
- public Dictionary(int dimensions)
dimensions
- public void definalizeAll()
public void finalizeAll()
public java.lang.String[][] getMapping()
public int getNumDimensions()
public int[] getSuppressedCodes()
public com.carrotsearch.hppc.ObjectIntOpenHashMap<java.lang.String> getUnfinalizedValues(int dimension)
dimension
- public java.lang.Integer probe(int dimension, java.lang.String string)
dimension
- string
- public int register(int dimension, java.lang.String string)
dimension
- the dimensionstring
- the stringpublic void registerAll(int targetDimension, Dictionary dictionary, int sourceDimension)
targetDimension
- dictionary
- sourceDimension
- public void registerSpecialValues()