Package io.deephaven.server.uri
Class BarrageTableResolver
java.lang.Object
io.deephaven.server.uri.BarrageTableResolver
- All Implemented Interfaces:
UriResolver
The barrage table resolver is able to resolve
remote URIs
into tables
.
For more advanced use cases, see BarrageSession
.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Integer
static final BarrageSnapshotOptions
static final BarrageSubscriptionOptions
The default options, which usesBarrageSubscriptionOptions.useDeephavenNulls()
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BarrageTableResolver
get()
boolean
isResolvable
(URI uri) Returns true if the resolver canresolve
theuri
.Resolveuri
into an object.schemes()
The supported schemes.snapshot
(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) Create a full snapshot to thetable
via thetarget
.snapshot
(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table snapshot to thetable
via thetarget
.Create a full snapshot of the remote URI.Create a full snapshot to thetable
via thetargetUri
.Create a partial table snapshot to thetable
via thetargetUri
.snapshot
(String targetUri, TableSpec table, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table snapshot to thetable
via thetargetUri
.subscribe
(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) Create a full-subscription to thetable
via thetarget
.subscribe
(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table subscription to thetable
via thetarget
.Create a full-subscription to the remote URI.Create a full-subscription to thetable
via thetargetUri
.Create a partial table subscription to thetable
via thetargetUri
.subscribe
(String targetUri, TableSpec table, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table subscription to thetable
via thetargetUri
.
-
Field Details
-
MAX_INBOUND_MESSAGE_SIZE
-
SUB_OPTIONS
The default options, which usesBarrageSubscriptionOptions.useDeephavenNulls()
. -
SNAP_OPTIONS
-
-
Constructor Details
-
BarrageTableResolver
-
-
Method Details
-
get
-
schemes
Description copied from interface:UriResolver
The supported schemes.- Specified by:
schemes
in interfaceUriResolver
- Returns:
- the schemes
-
isResolvable
Description copied from interface:UriResolver
Returns true if the resolver canresolve
theuri
.- Specified by:
isResolvable
in interfaceUriResolver
- Parameters:
uri
- the uri- Returns:
- true if this resolver can resolve uri
-
resolve
Description copied from interface:UriResolver
Resolveuri
into an object.- Specified by:
resolve
in interfaceUriResolver
- Parameters:
uri
- the URI- Returns:
- the object
- Throws:
InterruptedException
- if the current thread is interrupted
-
subscribe
public Future<Table> subscribe(RemoteUri remoteUri) throws InterruptedException, TableHandle.TableHandleException Create a full-subscription to the remote URI. UsesSUB_OPTIONS
.- Parameters:
remoteUri
- the remote URI- Returns:
- the subscribed table
- Throws:
InterruptedException
TableHandle.TableHandleException
-
subscribe
public Future<Table> subscribe(String targetUri, TableSpec table) throws TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri
- the target URItable
- the table spec- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleException
InterruptedException
-
subscribe
public Future<Table> subscribe(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) throws TableHandle.TableHandleException, InterruptedException Create a full-subscription to thetable
via thetarget
.- Parameters:
target
- the targettable
- the tableoptions
- the options- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleException
InterruptedException
-
subscribe
public Future<Table> subscribe(String targetUri, TableSpec table, RowSet viewport, BitSet columns) throws TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri
- the target URItable
- the table specviewport
- the position-space viewport to use for the subscriptioncolumns
- the columns to include in the subscription- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleException
InterruptedException
-
subscribe
public Future<Table> subscribe(String targetUri, TableSpec table, RowSet viewport, BitSet columns, boolean reverseViewport) throws TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri
- the target URItable
- the table specviewport
- the position-space viewport to use for the subscriptioncolumns
- the columns to include in the subscriptionreverseViewport
- Whether to treatviewport
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleException
InterruptedException
-
subscribe
public Future<Table> subscribe(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options, RowSet viewport, BitSet columns, boolean reverseViewport) throws TableHandle.TableHandleException, InterruptedException Create a partial table subscription to thetable
via thetarget
.- Parameters:
target
- the targettable
- the tableoptions
- the optionsviewport
- the position-space viewport to use for the subscriptioncolumns
- the columns to include in the subscriptionreverseViewport
- Whether to treatviewport
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleException
InterruptedException
-
snapshot
public Future<Table> snapshot(RemoteUri remoteUri) throws InterruptedException, TableHandle.TableHandleException Create a full snapshot of the remote URI. UsesSUB_OPTIONS
.- Parameters:
remoteUri
- the remote URI- Returns:
- the table to snapshot
- Throws:
InterruptedException
TableHandle.TableHandleException
-
snapshot
public Future<Table> snapshot(String targetUri, TableSpec table) throws TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri
- the target URItable
- the table spec- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleException
InterruptedException
-
snapshot
public Future<Table> snapshot(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) throws TableHandle.TableHandleException, InterruptedException Create a full snapshot to thetable
via thetarget
.- Parameters:
target
- the targettable
- the tableoptions
- the options- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleException
InterruptedException
-
snapshot
public Future<Table> snapshot(String targetUri, TableSpec table, RowSet viewport, BitSet columns) throws TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri
- the target URItable
- the table specviewport
- the position-space viewport to use for the snapshotcolumns
- the columns to include in the snapshot- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleException
InterruptedException
-
snapshot
public Future<Table> snapshot(String targetUri, TableSpec table, RowSet viewport, BitSet columns, boolean reverseViewport) throws TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri
- the target URItable
- the table specviewport
- the position-space viewport to use for the snapshotcolumns
- the columns to include in the snapshotreverseViewport
- Whether to treatviewport
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleException
InterruptedException
-
snapshot
public Future<Table> snapshot(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options, RowSet viewport, BitSet columns, boolean reverseViewport) throws TableHandle.TableHandleException, InterruptedException Create a partial table snapshot to thetable
via thetarget
.- Parameters:
target
- the targettable
- the tableoptions
- the optionsviewport
- the position-space viewport to use for the snapshotcolumns
- the columns to include in the snapshotreverseViewport
- Whether to treatviewport
as offsets fromLongSizedDataStructure.size()
rather than0
- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleException
InterruptedException
-