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
FieldsModifier and TypeFieldDescriptionstatic final Integerstatic final BarrageSnapshotOptionsstatic final BarrageSubscriptionOptionsThe default options, which usesBarrageSubscriptionOptions.useDeephavenNulls(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BarrageTableResolverget()booleanisResolvable(URI uri) Returns true if the resolver canresolvetheuri.Resolveuriinto an object.schemes()The supported schemes.snapshot(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) Create a full snapshot to thetablevia thetarget.snapshot(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table snapshot to thetablevia thetarget.Create a full snapshot of the remote URI.Create a full snapshot to thetablevia thetargetUri.Create a partial table snapshot to thetablevia thetargetUri.snapshot(String targetUri, TableSpec table, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table snapshot to thetablevia thetargetUri.subscribe(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) Create a full-subscription to thetablevia thetarget.subscribe(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table subscription to thetablevia thetarget.Create a full-subscription to the remote URI.Create a full-subscription to thetablevia thetargetUri.Create a partial table subscription to thetablevia thetargetUri.subscribe(String targetUri, TableSpec table, RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table subscription to thetablevia 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:UriResolverThe supported schemes.- Specified by:
schemesin interfaceUriResolver- Returns:
- the schemes
-
isResolvable
Description copied from interface:UriResolverReturns true if the resolver canresolvetheuri.- Specified by:
isResolvablein interfaceUriResolver- Parameters:
uri- the uri- Returns:
- true if this resolver can resolve uri
-
resolve
Description copied from interface:UriResolverResolveuriinto an object.- Specified by:
resolvein 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:
InterruptedExceptionTableHandle.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.TableHandleExceptionInterruptedException
-
subscribe
public Future<Table> subscribe(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) throws TableHandle.TableHandleException, InterruptedException Create a full-subscription to thetablevia thetarget.- Parameters:
target- the targettable- the tableoptions- the options- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleExceptionInterruptedException
-
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.TableHandleExceptionInterruptedException
-
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 treatviewportas offsets fromLongSizedDataStructure.size()rather than0- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleExceptionInterruptedException
-
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 thetablevia 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 treatviewportas offsets fromLongSizedDataStructure.size()rather than0- Returns:
- the subscribed table
- Throws:
TableHandle.TableHandleExceptionInterruptedException
-
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:
InterruptedExceptionTableHandle.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.TableHandleExceptionInterruptedException
-
snapshot
public Future<Table> snapshot(DeephavenTarget target, TableSpec table, BarrageSubscriptionOptions options) throws TableHandle.TableHandleException, InterruptedException Create a full snapshot to thetablevia thetarget.- Parameters:
target- the targettable- the tableoptions- the options- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleExceptionInterruptedException
-
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.TableHandleExceptionInterruptedException
-
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 treatviewportas offsets fromLongSizedDataStructure.size()rather than0- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleExceptionInterruptedException
-
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 thetablevia 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 treatviewportas offsets fromLongSizedDataStructure.size()rather than0- Returns:
- the table to snapshot
- Throws:
TableHandle.TableHandleExceptionInterruptedException
-