Package io.deephaven.client.impl
Interface BarrageSnapshot
- All Known Implementing Classes:
BarrageSnapshotImpl
public interface BarrageSnapshot
A
BarrageSnapshot
represents a snapshot of 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 snapshot of the data and populate aTable
with the data that is received.static BarrageSnapshot
make
(BarrageSession session, @Nullable ScheduledExecutorService executorService, TableHandle tableHandle, BarrageSnapshotOptions options) Create aBarrageSnapshot
from aTableHandle
.partialTable
(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.partialTable
(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 BarrageSnapshot make(BarrageSession session, @Nullable @Nullable ScheduledExecutorService executorService, TableHandle tableHandle, BarrageSnapshotOptions options) Create aBarrageSnapshot
from aTableHandle
.- Parameters:
session
- the Deephaven session that this export belongs toexecutorService
- an executor service used to flush metrics when enabledtableHandle
- the tableHandle to snapshot (ownership is transferred to the snapshot)options
- the transport level options for this snapshot- Returns:
- a
BarrageSnapshot
-
entireTable
Request a full snapshot of the data and populate aTable
with the data that is received. The returned future will block until all rows for the snapshot table are available. -
partialTable
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. -
partialTable
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 snapshotcolumns
- the columns to include in the snapshotreverseViewport
- Whether to treatposRowSet
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- a
Future
that will be populated with the resultTable
-