public static class DictionaryProvider.MapDictionaryProvider extends Object implements AutoCloseable, DictionaryProvider
DictionaryProvider
that is backed by a hash-map.DictionaryProvider.MapDictionaryProvider
Constructor and Description |
---|
MapDictionaryProvider(Dictionary... dictionaries)
Constructs a new instance from the given dictionaries.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
copyStructureFrom(DictionaryProvider other,
BufferAllocator allocator)
Initialize the map structure from another provider, but with empty vectors.
|
Set<Long> |
getDictionaryIds()
Get all dictionary IDs.
|
Dictionary |
lookup(long id)
Return the dictionary for the given ID.
|
void |
put(Dictionary dictionary) |
public MapDictionaryProvider(Dictionary... dictionaries)
public void copyStructureFrom(DictionaryProvider other, BufferAllocator allocator)
other
- the DictionaryProvider
to copy the ids and fields fromallocator
- allocator to create the empty vectorspublic void put(Dictionary dictionary)
public final Set<Long> getDictionaryIds()
DictionaryProvider
getDictionaryIds
in interface DictionaryProvider
public Dictionary lookup(long id)
DictionaryProvider
lookup
in interface DictionaryProvider
public void close()
close
in interface AutoCloseable
Copyright © 2024 The Apache Software Foundation. All rights reserved.