Package io.deephaven.server.uri
Class BarrageTableResolver
java.lang.Object
io.deephaven.server.uri.BarrageTableResolver
- All Implemented Interfaces:
io.deephaven.uri.resolver.UriResolver
@Singleton
public final class BarrageTableResolver
extends Object
implements io.deephaven.uri.resolver.UriResolver
The barrage table resolver is able to resolve
remote URIs into tables.
For more advanced use cases, see BarrageSession.
- See Also:
-
remote URI format
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Integerstatic final io.deephaven.extensions.barrage.BarrageSnapshotOptionsstatic final io.deephaven.extensions.barrage.BarrageSubscriptionOptionsThe default options, which usesBarrageSubscriptionOptions.useDeephavenNulls(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BarrageTableResolverget()booleanisResolvable(URI uri) io.deephaven.engine.table.Tableschemes()Future<io.deephaven.engine.table.Table>snapshot(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options) Create a full snapshot to thetablevia thetarget.Future<io.deephaven.engine.table.Table>snapshot(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table snapshot to thetablevia thetarget.Future<io.deephaven.engine.table.Table>snapshot(io.deephaven.uri.RemoteUri remoteUri) Create a full snapshot of the remote URI.Future<io.deephaven.engine.table.Table>Create a full snapshot to thetablevia thetargetUri.Future<io.deephaven.engine.table.Table>snapshot(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns) Create a partial table snapshot to thetablevia thetargetUri.Future<io.deephaven.engine.table.Table>snapshot(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table snapshot to thetablevia thetargetUri.Future<io.deephaven.engine.table.Table>subscribe(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options) Create a full-subscription to thetablevia thetarget.Future<io.deephaven.engine.table.Table>subscribe(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table subscription to thetablevia thetarget.Future<io.deephaven.engine.table.Table>subscribe(io.deephaven.uri.RemoteUri remoteUri) Create a full-subscription to the remote URI.Future<io.deephaven.engine.table.Table>Create a full-subscription to thetablevia thetargetUri.Future<io.deephaven.engine.table.Table>subscribe(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns) Create a partial table subscription to thetablevia thetargetUri.Future<io.deephaven.engine.table.Table>subscribe(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) Create a partial table subscription to thetablevia thetargetUri.
-
Field Details
-
MAX_INBOUND_MESSAGE_SIZE
-
SUB_OPTIONS
public static final io.deephaven.extensions.barrage.BarrageSubscriptionOptions SUB_OPTIONSThe default options, which usesBarrageSubscriptionOptions.useDeephavenNulls(). -
SNAP_OPTIONS
public static final io.deephaven.extensions.barrage.BarrageSnapshotOptions SNAP_OPTIONS
-
-
Constructor Details
-
BarrageTableResolver
-
-
Method Details
-
get
-
schemes
- Specified by:
schemesin interfaceio.deephaven.uri.resolver.UriResolver
-
isResolvable
- Specified by:
isResolvablein interfaceio.deephaven.uri.resolver.UriResolver
-
resolve
- Specified by:
resolvein interfaceio.deephaven.uri.resolver.UriResolver- Throws:
InterruptedException
-
subscribe
public Future<io.deephaven.engine.table.Table> subscribe(io.deephaven.uri.RemoteUri remoteUri) throws InterruptedException, io.deephaven.client.impl.TableHandle.TableHandleException Create a full-subscription to the remote URI. UsesSUB_OPTIONS.- Parameters:
remoteUri- the remote URI- Returns:
- the subscribed table
- Throws:
InterruptedExceptionio.deephaven.client.impl.TableHandle.TableHandleException
-
subscribe
public Future<io.deephaven.engine.table.Table> subscribe(String targetUri, io.deephaven.qst.table.TableSpec table) throws io.deephaven.client.impl.TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri- the target URItable- the table spec- Returns:
- the subscribed table
- Throws:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
subscribe
public Future<io.deephaven.engine.table.Table> subscribe(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options) throws io.deephaven.client.impl.TableHandle.TableHandleException, InterruptedException Create a full-subscription to thetablevia thetarget.- Parameters:
target- the targettable- the tableoptions- the options- Returns:
- the subscribed table
- Throws:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
subscribe
public Future<io.deephaven.engine.table.Table> subscribe(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns) throws io.deephaven.client.impl.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:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
subscribe
public Future<io.deephaven.engine.table.Table> subscribe(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) throws io.deephaven.client.impl.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:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
subscribe
public Future<io.deephaven.engine.table.Table> subscribe(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) throws io.deephaven.client.impl.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:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
snapshot
public Future<io.deephaven.engine.table.Table> snapshot(io.deephaven.uri.RemoteUri remoteUri) throws InterruptedException, io.deephaven.client.impl.TableHandle.TableHandleException Create a full snapshot of the remote URI. UsesSUB_OPTIONS.- Parameters:
remoteUri- the remote URI- Returns:
- the table to snapshot
- Throws:
InterruptedExceptionio.deephaven.client.impl.TableHandle.TableHandleException
-
snapshot
public Future<io.deephaven.engine.table.Table> snapshot(String targetUri, io.deephaven.qst.table.TableSpec table) throws io.deephaven.client.impl.TableHandle.TableHandleException, InterruptedException - Parameters:
targetUri- the target URItable- the table spec- Returns:
- the table to snapshot
- Throws:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
snapshot
public Future<io.deephaven.engine.table.Table> snapshot(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options) throws io.deephaven.client.impl.TableHandle.TableHandleException, InterruptedException Create a full snapshot to thetablevia thetarget.- Parameters:
target- the targettable- the tableoptions- the options- Returns:
- the table to snapshot
- Throws:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
snapshot
public Future<io.deephaven.engine.table.Table> snapshot(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns) throws io.deephaven.client.impl.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:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
snapshot
public Future<io.deephaven.engine.table.Table> snapshot(String targetUri, io.deephaven.qst.table.TableSpec table, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) throws io.deephaven.client.impl.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:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-
snapshot
public Future<io.deephaven.engine.table.Table> snapshot(io.deephaven.uri.DeephavenTarget target, io.deephaven.qst.table.TableSpec table, io.deephaven.extensions.barrage.BarrageSubscriptionOptions options, io.deephaven.engine.rowset.RowSet viewport, BitSet columns, boolean reverseViewport) throws io.deephaven.client.impl.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:
io.deephaven.client.impl.TableHandle.TableHandleExceptionInterruptedException
-