Class ConstantValueDoubleDictionary
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.BaseImmutableDictionary
-
- org.apache.pinot.segment.local.segment.index.readers.ConstantValueDoubleDictionary
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Dictionary
public class ConstantValueDoubleDictionary extends BaseImmutableDictionary
Dictionary of a single double value.
-
-
Field Summary
-
Fields inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
NULL_VALUE_INDEX
-
-
Constructor Summary
Constructors Constructor Description ConstantValueDoubleDictionary(double value)
-
Method Summary
Modifier and Type Method Description Doubleget(int dictId)BigDecimalgetBigDecimalValue(int dictId)doublegetDoubleValue(int dictId)floatgetFloatValue(int dictId)intgetIntValue(int dictId)longgetLongValue(int dictId)DoublegetMaxVal()DoublegetMinVal()double[]getSortedValues()StringgetStringValue(int dictId)FieldSpec.DataTypegetValueType()intindexOf(double doubleValue)intindexOf(String stringValue)intinsertionIndexOf(String stringValue)-
Methods inherited from class org.apache.pinot.segment.local.segment.index.readers.BaseImmutableDictionary
binarySearch, binarySearch, binarySearch, binarySearch, binarySearch, binarySearch, binarySearch, close, compare, getBigDecimal, getBuffer, getBytes, getDictIdsInRange, getDouble, getFloat, getInt, getLong, getPaddedString, getUnpaddedBytes, getUnpaddedString, isSorted, length, normalizeIndex, padString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
getByteArrayValue, getBytesValue, getInternal, indexOf, indexOf, indexOf, indexOf, indexOf, readBigDecimalValues, readBytesValues, readDoubleValues, readFloatValues, readIntValues, readLongValues, readStringValues
-
-
-
-
Method Detail
-
getValueType
public FieldSpec.DataType getValueType()
-
indexOf
public int indexOf(String stringValue)
- Specified by:
indexOfin interfaceDictionary- Overrides:
indexOfin classBaseImmutableDictionary
-
indexOf
public int indexOf(double doubleValue)
-
insertionIndexOf
public int insertionIndexOf(String stringValue)
-
getMinVal
public Double getMinVal()
- Specified by:
getMinValin interfaceDictionary- Overrides:
getMinValin classBaseImmutableDictionary
-
getMaxVal
public Double getMaxVal()
- Specified by:
getMaxValin interfaceDictionary- Overrides:
getMaxValin classBaseImmutableDictionary
-
getSortedValues
public double[] getSortedValues()
- Specified by:
getSortedValuesin interfaceDictionary- Overrides:
getSortedValuesin classBaseImmutableDictionary
-
get
public Double get(int dictId)
-
getIntValue
public int getIntValue(int dictId)
-
getLongValue
public long getLongValue(int dictId)
-
getFloatValue
public float getFloatValue(int dictId)
-
getDoubleValue
public double getDoubleValue(int dictId)
-
getBigDecimalValue
public BigDecimal getBigDecimalValue(int dictId)
-
getStringValue
public String getStringValue(int dictId)
-
-