Package io.deephaven.client.impl
Interface BarrageSubscription
- All Known Implementing Classes:
BarrageSubscriptionImpl
public interface BarrageSubscription
A
BarrageSubscription
represents a subscription over a table that may or may not be filtered to a viewport of
the remote source table.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionRequest a full subscription of the data and populate aTable
with the incrementally updating data that is received.static BarrageSubscription
make
(BarrageSession session, ScheduledExecutorService executorService, TableHandle tableHandle, BarrageSubscriptionOptions options) Create aBarrageSubscription
from aTableHandle
.partialTable
(RowSet viewport, BitSet columns) Request a partial subscription of the data limited by viewport or column set and populate aTable
with the data that is received.partialTable
(RowSet viewport, BitSet columns, boolean reverseViewport) Request a partial subscription of the data limited by viewport or column set and populate aTable
with the data that is received.Request a full snapshot of the data and populate aTable
with the incrementally updating data that is received.snapshotPartialTable
(RowSet viewport, BitSet columns) Request a partial snapshot of the data limited by viewport or column set and populate aTable
with the data that is received.snapshotPartialTable
(RowSet viewport, BitSet columns, boolean reverseViewport) Request a partial snapshot of the data limited by viewport or column set and populate aTable
with the data that is received.
-
Method Details
-
make
static BarrageSubscription make(BarrageSession session, ScheduledExecutorService executorService, TableHandle tableHandle, BarrageSubscriptionOptions options) Create aBarrageSubscription
from aTableHandle
.- Parameters:
session
- the Deephaven session that this export belongs toexecutorService
- an executor service used to flush statstableHandle
- the tableHandle to subscribe to (ownership is transferred to the subscription)options
- the transport level options for this subscription- Returns:
- a
BarrageSubscription
from aTableHandle
-
entireTable
Request a full subscription of the data and populate aTable
with the incrementally updating data that is received. The returned future will block until all rows for the subscribed table are available. -
partialTable
Request a partial subscription of the data limited by viewport or column set and populate aTable
with the data that is received. The returned future will block until the subscribed table viewport is satisfied. -
partialTable
Request a partial subscription of the data limited by viewport or column set and populate aTable
with the data that is received. Allows the viewport to be reversed. The returned future will block until the subscribed table viewport is satisfied.- Parameters:
viewport
- the position-space viewport to use for the subscriptioncolumns
- the columns to include in the subscriptionreverseViewport
- Whether to treatposRowSet
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- a
Future
that will be populated with the resultTable
-
snapshotEntireTable
Request a full snapshot of the data and populate aTable
with the incrementally updating data that is received. The returned future will block until all rows for the snapshot table are available. -
snapshotPartialTable
Request a partial snapshot of the data limited by viewport or column set and populate aTable
with the data that is received. The returned future will block until the snapshot table viewport is satisfied. -
snapshotPartialTable
Request a partial snapshot of the data limited by viewport or column set and populate aTable
with the data that is received. Allows the viewport to be reversed. The returned future will block until the snapshot table viewport is satisfied.- Parameters:
viewport
- the position-space viewport to use for the subscriptioncolumns
- the columns to include in the subscriptionreverseViewport
- Whether to treatposRowSet
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- a
Future
that will be populated with the resultTable
-