Class StringDictionary
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.BaseImmutableDictionary
-
- org.apache.pinot.segment.local.segment.index.readers.StringDictionary
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,Dictionary
public class StringDictionary extends BaseImmutableDictionary
-
-
Field Summary
-
Fields inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
NULL_VALUE_INDEX
-
-
Constructor Summary
Constructors Constructor Description StringDictionary(PinotDataBuffer dataBuffer, int length, int numBytesPerValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(int dictId)BigDecimalgetBigDecimalValue(int dictId)byte[]getBytesValue(int dictId)doublegetDoubleValue(int dictId)floatgetFloatValue(int dictId)intgetIntValue(int dictId)longgetLongValue(int dictId)StringgetStringValue(int dictId)FieldSpec.DataTypegetValueType()intinsertionIndexOf(String stringValue)voidreadBytesValues(int[] dictIds, int length, byte[][] outValues)voidreadDoubleValues(int[] dictIds, int length, double[] outValues)voidreadFloatValues(int[] dictIds, int length, float[] outValues)voidreadIntValues(int[] dictIds, int length, int[] outValues)voidreadLongValues(int[] dictIds, int length, long[] outValues)voidreadStringValues(int[] dictIds, int length, String[] outValues)-
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, getDictIds, getDictIdsInRange, getDouble, getFloat, getInt, getLong, getMaxVal, getMinVal, getPaddedString, getSortedValues, getUnpaddedBytes, getUnpaddedString, indexOf, isSorted, length, normalizeIndex
-
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, getInternal, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, readBigDecimalValues
-
-
-
-
Constructor Detail
-
StringDictionary
public StringDictionary(PinotDataBuffer dataBuffer, int length, int numBytesPerValue)
-
-
Method Detail
-
getValueType
public FieldSpec.DataType getValueType()
-
insertionIndexOf
public int insertionIndexOf(String stringValue)
-
get
public String 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)
-
getBytesValue
public byte[] getBytesValue(int dictId)
-
readIntValues
public void readIntValues(int[] dictIds, int length, int[] outValues)
-
readLongValues
public void readLongValues(int[] dictIds, int length, long[] outValues)
-
readFloatValues
public void readFloatValues(int[] dictIds, int length, float[] outValues)
-
readDoubleValues
public void readDoubleValues(int[] dictIds, int length, double[] outValues)
-
readStringValues
public void readStringValues(int[] dictIds, int length, String[] outValues)
-
readBytesValues
public void readBytesValues(int[] dictIds, int length, byte[][] outValues)
-
-