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 void
close()
ByteBuffer
getArrayBuffer()
ByteBuffer
getDoubleBuffer()
ByteBuffer
getLongBuffer()
SmooshedFileMapper
getStringBufferMapper()
int
lookupArray(int[] value)
int
lookupDouble(Double value)
int
lookupLong(Long value)
int
lookupString(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-