Class ArrowDictionaryBatch
java.lang.Object
org.apache.arrow.vector.ipc.message.ArrowDictionaryBatch
- All Implemented Interfaces:
AutoCloseable,ArrowMessage,FBSerializable
POJO wrapper around a Dictionary Batch IPC messages
(https://arrow.apache.org/docs/format/IPC.html#dictionary-batches)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.arrow.vector.ipc.message.ArrowMessage
ArrowMessage.ArrowMessageVisitor<T> -
Constructor Summary
ConstructorsConstructorDescriptionArrowDictionaryBatch(long dictionaryId, ArrowRecordBatch dictionary) Deprecated.ArrowDictionaryBatch(long dictionaryId, ArrowRecordBatch dictionary, boolean isDelta) Constructs new instance. -
Method Summary
Modifier and TypeMethodDescription<T> Taccepts(ArrowMessage.ArrowMessageVisitor<T> visitor) voidclose()longlongbyteReturns the flatbuffer enum value indicating the type of the message.booleanisDelta()toString()intwriteTo(com.google.flatbuffers.FlatBufferBuilder builder) Returns the number of bytes taken to serialize the data in builder after writing to it.
-
Constructor Details
-
ArrowDictionaryBatch
Deprecated. -
ArrowDictionaryBatch
Constructs new instance.
-
-
Method Details
-
isDelta
public boolean isDelta() -
getMessageType
public byte getMessageType()Description copied from interface:ArrowMessageReturns the flatbuffer enum value indicating the type of the message.- Specified by:
getMessageTypein interfaceArrowMessage
-
getDictionaryId
public long getDictionaryId() -
getDictionary
-
writeTo
public int writeTo(com.google.flatbuffers.FlatBufferBuilder builder) Description copied from interface:FBSerializableReturns the number of bytes taken to serialize the data in builder after writing to it.- Specified by:
writeToin interfaceFBSerializable
-
computeBodyLength
public long computeBodyLength()- Specified by:
computeBodyLengthin interfaceArrowMessage
-
accepts
- Specified by:
acceptsin interfaceArrowMessage
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-