Package io.deephaven.server.arrow
Class ArrowFlightUtil.DoPutObserver
java.lang.Object
io.deephaven.extensions.barrage.util.ArrowToTableConverter
io.deephaven.server.arrow.ArrowFlightUtil.DoPutObserver
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<InputStream>
,Closeable
,AutoCloseable
- Enclosing class:
- ArrowFlightUtil
public static class ArrowFlightUtil.DoPutObserver
extends ArrowToTableConverter
implements io.grpc.stub.StreamObserver<InputStream>, Closeable
This is a stateful observer; a DoPut stream begins with its schema.
-
Field Summary
Fields inherited from class io.deephaven.extensions.barrage.util.ArrowToTableConverter
options, resultTable, totalRowsRead
-
Constructor Summary
ConstructorDescriptionDoPutObserver
(SessionState session, TicketRouter ticketRouter, SessionService.ErrorTransformer errorTransformer, io.grpc.stub.StreamObserver<org.apache.arrow.flight.impl.Flight.PutResult> observer) -
Method Summary
Methods inherited from class io.deephaven.extensions.barrage.util.ArrowToTableConverter
addRecordBatch, addRecordBatches, createBarrageMessage, getResultTable, parseSchema, setSchema
-
Constructor Details
-
DoPutObserver
public DoPutObserver(SessionState session, TicketRouter ticketRouter, SessionService.ErrorTransformer errorTransformer, io.grpc.stub.StreamObserver<org.apache.arrow.flight.impl.Flight.PutResult> observer)
-
-
Method Details
-
onNext
- Specified by:
onNext
in interfaceio.grpc.stub.StreamObserver<InputStream>
-
onError
- Specified by:
onError
in interfaceio.grpc.stub.StreamObserver<InputStream>
-
onCompleted
public void onCompleted()- Specified by:
onCompleted
in interfaceio.grpc.stub.StreamObserver<InputStream>
- Overrides:
onCompleted
in classArrowToTableConverter
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-