Uses of Interface
org.apache.arrow.vector.dictionary.DictionaryProvider
Package
Description
-
Uses of DictionaryProvider in org.apache.arrow.flight
Modifier and TypeMethodDescriptionFlightStream.getDictionaryProvider()
Get the provider for dictionaries in this stream.FlightStream.takeDictionaryOwnership()
Get an owned reference to the dictionaries in this stream.Modifier and TypeMethodDescriptiondefault void
OutboundStreamListener.start
(VectorSchemaRoot root, DictionaryProvider dictionaries) Start sending data, using the schema of the givenVectorSchemaRoot
.void
OutboundStreamListener.start
(VectorSchemaRoot root, DictionaryProvider dictionaries, IpcOption option) Start sending data, using the schema of the givenVectorSchemaRoot
.FlightClient.startPut
(FlightDescriptor descriptor, VectorSchemaRoot root, DictionaryProvider provider, FlightClient.PutListener metadataListener, CallOption... options) Create or append a descriptor with another stream. -
Uses of DictionaryProvider in org.apache.arrow.vector.dictionary
Modifier and TypeClassDescriptionstatic class
Implementation ofDictionaryProvider
that is backed by a hash-map.Modifier and TypeMethodDescriptionvoid
DictionaryProvider.MapDictionaryProvider.copyStructureFrom
(DictionaryProvider other, BufferAllocator allocator) Initialize the map structure from another provider, but with empty vectors. -
Uses of DictionaryProvider in org.apache.arrow.vector.ipc
Modifier and TypeClassDescriptionclass
An implementation ofArrowReader
that reads the standard arrow binary file format.class
Abstract class to read Schema and ArrowRecordBatches.class
This class reads from an input stream and produces ArrowRecordBatches.class
A reader for JSON files that translates them into vectors.Modifier and TypeMethodDescriptionprotected void
ArrowFileWriter.ensureDictionariesWritten
(DictionaryProvider provider, Set<Long> dictionaryIdsUsed) protected void
ArrowStreamWriter.ensureDictionariesWritten
(DictionaryProvider provider, Set<Long> dictionaryIdsUsed) protected abstract void
ArrowWriter.ensureDictionariesWritten
(DictionaryProvider provider, Set<Long> dictionaryIdsUsed) Write dictionaries after schema and before recordBatches, dictionaries won't be written if empty stream (only has schema data in IPC).void
JsonFileWriter.start
(Schema schema, DictionaryProvider provider) Writes out the "header" of the file including the schema and any dictionaries required.ModifierConstructorDescriptionArrowFileWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out) ArrowFileWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData) ArrowFileWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData, IpcOption option) ArrowFileWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType) ArrowFileWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType, Optional<Integer> compressionLevel) ArrowFileWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option) ArrowStreamWriter
(VectorSchemaRoot root, DictionaryProvider provider, OutputStream out) Construct an ArrowStreamWriter with an optional DictionaryProvider for the OutputStream.ArrowStreamWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out) Construct an ArrowStreamWriter with an optional DictionaryProvider for the WritableByteChannel.ArrowStreamWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option) Construct an ArrowStreamWriter with an optional DictionaryProvider for the WritableByteChannel.ArrowStreamWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType) Construct an ArrowStreamWriter with compression enabled.ArrowStreamWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType, Optional<Integer> compressionLevel) Construct an ArrowStreamWriter with compression enabled.protected
ArrowWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out) protected
ArrowWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option) protected
ArrowWriter
(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType, Optional<Integer> compressionLevel) Note: fields are not closed when the writer is closed. -
Uses of DictionaryProvider in org.apache.arrow.vector.table
Modifier and TypeFieldDescriptionprotected DictionaryProvider
BaseTable.dictionaryProvider
An optional DictionaryProvider.Modifier and TypeMethodDescriptionBaseTable.getDictionaryProvider()
Returns the DictionaryProvider for this table.ModifierConstructorDescriptionBaseTable
(List<FieldVector> fieldVectors, int rowCount, DictionaryProvider provider) Constructs new instance with the given rowCount, and containing the schema and each of the given vectors.Table
(List<FieldVector> fieldVectors, int rowCount, DictionaryProvider provider) Constructs a new instance. -
Uses of DictionaryProvider in org.apache.arrow.vector.util
Modifier and TypeMethodDescriptionstatic void
Validator.compareDictionaries
(List<DictionaryEncoding> encodings1, List<DictionaryEncoding> encodings2, DictionaryProvider provider1, DictionaryProvider provider2) Validate two Dictionary encodings and dictionaries with id's from the encodings.static void
Validator.compareDictionaryProviders
(DictionaryProvider provider1, DictionaryProvider provider2) Validate two dictionary providers are equal in structure and contents.static Field
DictionaryUtility.toMessageFormat
(Field field, DictionaryProvider provider, Set<Long> dictionaryIdsUsed) Convert field and child fields that have a dictionary encoding to message format, so fields have the dictionary type.