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
ConstructorsModifierConstructorDescriptionprotectedBarrageSession(SessionImpl session, org.apache.arrow.flight.FlightClient client, io.grpc.ManagedChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionchannel()The authenticated channel.static BarrageSessionof(SessionImpl session, org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) 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
protected BarrageSession(SessionImpl session, org.apache.arrow.flight.FlightClient client, io.grpc.ManagedChannel channel)
-
-
Method Details
-
of
public static BarrageSession of(SessionImpl session, org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) -
subscribe
public BarrageSubscription subscribe(TableSpec tableSpec, BarrageSubscriptionOptions options) throws TableHandle.TableHandleException, InterruptedException Description copied from interface:BarrageSubscription.FactorySources a barrage subscription from aTableSpec.- Specified by:
subscribein 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.TableHandleExceptionInterruptedException
-
subscribe
Description copied from interface:BarrageSubscription.FactorySources a barrage subscription from aTableHandle. A new reference of the handle is created. The originaltableHandleis still owned by the caller.- Specified by:
subscribein 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.FactorySources a barrage snapshot from aTableSpec.- Specified by:
snapshotin interfaceBarrageSnapshot.Factory- Parameters:
tableSpec- the tableSpec to resolve and then snapshotoptions- the options configuring the details of this snapshot- Returns:
- the
BarrageSnapshot - Throws:
TableHandle.TableHandleExceptionInterruptedException
-
snapshot
Description copied from interface:BarrageSnapshot.FactorySources a barrage snapshot from aTableHandle. A new reference of the handle is created. The originaltableHandleis still owned by the caller.- Specified by:
snapshotin 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
-