java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.DictionaryBatch
public final class DictionaryBatch
extends com.google.flatbuffers.Table
For sending dictionary encoding information. Any Field can be
dictionary-encoded, but in this case none of its children may be
dictionary-encoded.
There is one vector / column per dictionary, but that vector / column
may be spread across multiple dictionary batches by using the isDelta
flag
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__assign(int _i, ByteBuffer _bb) void__init(int _i, ByteBuffer _bb) static voidaddData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) static voidaddId(com.google.flatbuffers.FlatBufferBuilder builder, long id) static voidaddIsDelta(com.google.flatbuffers.FlatBufferBuilder builder, boolean isDelta) static intcreateDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder, long id, int dataOffset, boolean isDelta) data()data(RecordBatch obj) static intendDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder) static DictionaryBatchstatic DictionaryBatchlongid()booleanisDelta()If isDelta is true the values in the dictionary are to be appended to a dictionary with the indicated id.static voidstartDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder) static voidMethods inherited from class com.google.flatbuffers.Table
__has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables
-
Constructor Details
-
DictionaryBatch
public DictionaryBatch()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsDictionaryBatch
-
getRootAsDictionaryBatch
-
__init
-
__assign
-
id
public long id() -
data
-
data
-
isDelta
public boolean isDelta()If isDelta is true the values in the dictionary are to be appended to a dictionary with the indicated id. If isDelta is false this dictionary should replace the existing dictionary. -
createDictionaryBatch
public static int createDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder, long id, int dataOffset, boolean isDelta) -
startDictionaryBatch
public static void startDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder) -
addId
public static void addId(com.google.flatbuffers.FlatBufferBuilder builder, long id) -
addData
public static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) -
addIsDelta
public static void addIsDelta(com.google.flatbuffers.FlatBufferBuilder builder, boolean isDelta) -
endDictionaryBatch
public static int endDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder)
-