public class StringDimensionDictionary extends DimensionDictionary<String>
ABSENT_VALUE_ID| Constructor and Description |
|---|
StringDimensionDictionary(boolean computeOnHeapSize)
Creates a StringDimensionDictionary.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeOnHeapSize()
Whether on-heap size of this dictionary should be computed.
|
long |
estimateSizeOfValue(String value)
Estimates the size of the dimension value in bytes.
|
add, getId, getIdForNull, getMaxValue, getMinValue, getValue, getValues, size, sizeInBytes, sortpublic StringDimensionDictionary(boolean computeOnHeapSize)
computeOnHeapSize - true if on-heap memory estimation of the dictionary
size should be enabled, false otherwisepublic long estimateSizeOfValue(String value)
DimensionDictionary
This method is called when adding a new dimension value to the lookup only
if DimensionDictionary.computeOnHeapSize() returns true.
estimateSizeOfValue in class DimensionDictionary<String>public boolean computeOnHeapSize()
DimensionDictionarycomputeOnHeapSize in class DimensionDictionary<String>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.