Class ArrowToTableConverter
java.lang.Object
io.deephaven.extensions.barrage.util.ArrowToTableConverter
- Direct Known Subclasses:
ArrowFlightUtil.DoPutObserver
This class allows the incremental making of a BarrageTable from Arrow IPC messages, starting with an Arrow Schema
message followed by zero or more RecordBatches
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BarrageSubscriptionOptionsprotected BarrageTableprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecordBatch(ByteBuffer ipcMessage) voidaddRecordBatches(ByteBuffer... ipcMessages) protected voidconfigureWithSchema(org.apache.arrow.flatbuf.Schema schema) protected BarrageMessagecreateBarrageMessage(BarrageProtoUtil.MessageInfo mi, int numColumns) static PrimitiveIterator.OfLongextractBufferInfo(@NotNull org.apache.arrow.flatbuf.RecordBatch batch) voidstatic BarrageProtoUtil.MessageInfostatic org.apache.arrow.flatbuf.SchemavoidsetSchema(ByteBuffer ipcMessage)
-
Field Details
-
totalRowsRead
protected long totalRowsRead -
resultTable
-
options
-
-
Constructor Details
-
ArrowToTableConverter
public ArrowToTableConverter()
-
-
Method Details
-
parseArrowIpcMessage
-
parseArrowSchema
-
extractBufferInfo
public static PrimitiveIterator.OfLong extractBufferInfo(@NotNull @NotNull org.apache.arrow.flatbuf.RecordBatch batch) -
setSchema
-
addRecordBatches
-
addRecordBatch
-
getResultTable
-
onCompleted
- Throws:
InterruptedException
-
configureWithSchema
protected void configureWithSchema(org.apache.arrow.flatbuf.Schema schema) -
createBarrageMessage
-