Class DndSession
java.lang.Object
io.deephaven.enterprise.dnd.client.DndSession
- Direct Known Subclasses:
- DndSessionBarrage
A basic gRPC connection to a DnD worker. This class handles connection and authentication, more specific
 implementations will decorate with richer behavior, such as DndSessionBarrage and DndSessionFlight.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final org.apache.arrow.memory.RootAllocatorprotected final io.grpc.ManagedChannelprotected final SessionImpl
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.arrow.memory.BufferAllocatorGet the underlyingRootAllocatorstatic @NotNull TableSpecCreate aTableSpecbased on the catalog table from the server.io.grpc.ManagedChannelchannel()Get the underlyingManagedChannelvoidclose()Close and release the underlying session and channel for this session.voidexecuteCode(@NotNull String code) Execute the specified code on the server.getInfo()Get thequery infofor the connected Persistent Querystatic @NotNull TableSpechistoricalTable(@NotNull String namespace, @NotNull String tableName) Create aTableSpecbased on a historical table from the server.static @NotNull TableSpecCreate aTableSpecbased on a live table from the server.static @NotNull TableSpecscopeTable(@NotNull String tableName) Create aTableSpecbased on a table from the server query scope.session()Get the underlyingSessionImpl
- 
Field Details- 
channelprotected final io.grpc.ManagedChannel channel
- 
sessionImpl
- 
allocatorprotected final org.apache.arrow.memory.RootAllocator allocator
 
- 
- 
Method Details- 
getInfoGet thequery infofor the connected Persistent Query- Returns:
- the PersistentQueryInfoMessage
 
- 
executeCodepublic void executeCode(@NotNull @NotNull String code) throws ExecutionException, InterruptedException, TimeoutException Execute the specified code on the server.- Parameters:
- code- the code to execute
- Throws:
- ExecutionException
- InterruptedException
- TimeoutException
 
- 
closeClose and release the underlying session and channel for this session. If requested, also delete the Persistent Query- Throws:
- IOException
 
- 
historicalTable@NotNull public static @NotNull TableSpec historicalTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Create aTableSpecbased on a historical table from the server.- Parameters:
- namespace- the namespace of the table
- tableName- the name of the table
- Returns:
- a new TableSpec
 
- 
liveTable@NotNull public static @NotNull TableSpec liveTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Create aTableSpecbased on a live table from the server.- Parameters:
- namespace- the namespace of the table
- tableName- the name of the table
- Returns:
- a new TableSpec
 
- 
scopeTableCreate aTableSpecbased on a table from the server query scope.- Parameters:
- tableName- the name of the table
- Returns:
- a new TableSpec
 
- 
catalogTableCreate aTableSpecbased on the catalog table from the server.- Returns:
- a new TableSpec
 
- 
sessionGet the underlyingSessionImpl- Returns:
- the SessionImpl
 
- 
allocatorpublic org.apache.arrow.memory.BufferAllocator allocator()Get the underlyingRootAllocator- Returns:
- the RootAllocator
 
- 
channelpublic io.grpc.ManagedChannel channel()Get the underlyingManagedChannel- Returns:
- the ManagedChannel
 
 
-