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
Modifier and TypeFieldDescriptionprotected BarrageSubscriptionOptions
protected BarrageTable
protected long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecordBatch
(ByteBuffer ipcMessage) void
addRecordBatches
(ByteBuffer... ipcMessages) protected void
configureWithSchema
(org.apache.arrow.flatbuf.Schema schema) protected BarrageMessage
createBarrageMessage
(BarrageProtoUtil.MessageInfo mi, int numColumns) static PrimitiveIterator.OfLong
extractBufferInfo
(@NotNull org.apache.arrow.flatbuf.RecordBatch batch) void
static BarrageProtoUtil.MessageInfo
static org.apache.arrow.flatbuf.Schema
void
setSchema
(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
-