Package io.deephaven.client.impl
Class BarrageSession
java.lang.Object
io.deephaven.client.impl.FlightSession
io.deephaven.client.impl.BarrageSession
- All Implemented Interfaces:
BarrageSnapshot.Factory
,BarrageSubscription.Factory
,AutoCloseable
public class BarrageSession
extends FlightSession
implements BarrageSubscription.Factory, BarrageSnapshot.Factory
-
Field Summary
Fields inherited from class io.deephaven.client.impl.FlightSession
client, session
-
Constructor Summary
ModifierConstructorDescriptionprotected
BarrageSession
(SessionImpl session, org.apache.arrow.flight.FlightClient client) -
Method Summary
Modifier and TypeMethodDescriptionchannel()
The authenticated channel.static BarrageSession
create
(SessionImpl session, org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) static BarrageSession
of
(SessionImpl session, org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a barrage session.snapshot
(TableHandle tableHandle, BarrageSnapshotOptions options) Sources a barrage snapshot from aTableHandle
.snapshot
(TableSpec tableSpec, BarrageSnapshotOptions options) Sources a barrage snapshot from aTableSpec
.subscribe
(TableHandle tableHandle, BarrageSubscriptionOptions options) Sources a barrage subscription from aTableHandle
.subscribe
(TableSpec tableSpec, BarrageSubscriptionOptions options) Sources a barrage subscription from aTableSpec
.Methods inherited from class io.deephaven.client.impl.FlightSession
addToInputTable, addToInputTable, close, deleteFromInputTable, deleteFromInputTable, list, put, put, putExport, putExport, putExportManual, putExportManual, release, schema, schema, session, startExchange, stream
-
Constructor Details
-
BarrageSession
-
-
Method Details
-
of
public static BarrageSession of(SessionImpl session, org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a barrage session. Closing the barrage session does not closechannel
.- Parameters:
session
- the sessionincomingAllocator
- the incoming allocatorchannel
- the managed channel- Returns:
- the barrage session
-
create
@InternalUseOnly public static BarrageSession create(SessionImpl session, org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) - See Also:
- ApiNote:
- This method exists to be called by the Python API. It will be removed in the future if we can make JPY capable of selecting the right factory method to use when the same method is present in the class hierarchy multiple times.
-
subscribe
public BarrageSubscription subscribe(TableSpec tableSpec, BarrageSubscriptionOptions options) throws TableHandle.TableHandleException, InterruptedException Description copied from interface:BarrageSubscription.Factory
Sources a barrage subscription from aTableSpec
.- Specified by:
subscribe
in interfaceBarrageSubscription.Factory
- Parameters:
tableSpec
- the tableSpec to resolve and then subscribe tooptions
- the options configuring the details of this subscription- Returns:
- the
BarrageSubscription
- Throws:
TableHandle.TableHandleException
InterruptedException
-
subscribe
Description copied from interface:BarrageSubscription.Factory
Sources a barrage subscription from aTableHandle
. A new reference of the handle is created. The originaltableHandle
is still owned by the caller.- Specified by:
subscribe
in interfaceBarrageSubscription.Factory
- Parameters:
tableHandle
- the table handle to subscribe tooptions
- the options configuring the details of this subscription- Returns:
- the
BarrageSubscription
-
snapshot
public BarrageSnapshot snapshot(TableSpec tableSpec, BarrageSnapshotOptions options) throws TableHandle.TableHandleException, InterruptedException Description copied from interface:BarrageSnapshot.Factory
Sources a barrage snapshot from aTableSpec
.- Specified by:
snapshot
in interfaceBarrageSnapshot.Factory
- Parameters:
tableSpec
- the tableSpec to resolve and then snapshotoptions
- the options configuring the details of this snapshot- Returns:
- the
BarrageSnapshot
- Throws:
TableHandle.TableHandleException
InterruptedException
-
snapshot
Description copied from interface:BarrageSnapshot.Factory
Sources a barrage snapshot from aTableHandle
. A new reference of the handle is created. The originaltableHandle
is still owned by the caller.- Specified by:
snapshot
in interfaceBarrageSnapshot.Factory
- Parameters:
tableHandle
- the table handle to snapshotoptions
- the options configuring the details of this snapshot- Returns:
- the
BarrageSnapshot
-
channel
The authenticated channel.- Returns:
- the authenticated channel
-