Package org.apache.druid.segment.nested
Class DictionaryIdLookup
- java.lang.Object
-
- org.apache.druid.segment.nested.DictionaryIdLookup
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class DictionaryIdLookup extends Object implements Closeable
Value to dictionary id lookup, backed with memory mapped dictionaries populated lazily by the supplied
-
-
Constructor Summary
Constructors Constructor Description DictionaryIdLookup(String name, Path tempBasePath, DictionaryWriter<String> stringDictionaryWriter, DictionaryWriter<Long> longDictionaryWriter, DictionaryWriter<Double> doubleDictionaryWriter, DictionaryWriter<int[]> arrayDictionaryWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ByteBuffergetArrayBuffer()ByteBuffergetDoubleBuffer()ByteBuffergetLongBuffer()SmooshedFileMappergetStringBufferMapper()intlookupArray(int[] value)intlookupDouble(Double value)intlookupLong(Long value)intlookupString(String value)
-
-
-
Constructor Detail
-
DictionaryIdLookup
public DictionaryIdLookup(String name, Path tempBasePath, @Nullable DictionaryWriter<String> stringDictionaryWriter, @Nullable DictionaryWriter<Long> longDictionaryWriter, @Nullable DictionaryWriter<Double> doubleDictionaryWriter, @Nullable DictionaryWriter<int[]> arrayDictionaryWriter)
-
-
Method Detail
-
lookupArray
public int lookupArray(@Nullable int[] value)
-
getStringBufferMapper
@Nullable public SmooshedFileMapper getStringBufferMapper()
-
getLongBuffer
@Nullable public ByteBuffer getLongBuffer()
-
getDoubleBuffer
@Nullable public ByteBuffer getDoubleBuffer()
-
getArrayBuffer
@Nullable public ByteBuffer getArrayBuffer()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-