Package io.deephaven.server.arrow
Class HierarchicalTableViewExchangeMarshaller
java.lang.Object
io.deephaven.server.arrow.HierarchicalTableViewExchangeMarshaller
- All Implemented Interfaces:
ExchangeMarshaller
An ExchangeMarshaller for
HierarchicalTableView
. Subscriptions are supported, with each subsequent update
providing a complete snapshot of the desired viewport. Snapshots are not permitted.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
Does this marshaller accept the given export?int
priority()
The priority of this marshaller.void
snapshot
(io.deephaven.barrage.flatbuf.BarrageSnapshotRequest snapshotRequest, BarrageSnapshotOptions options, Object export, BarragePerformanceLog.SnapshotMetricsHelper metrics, io.grpc.stub.StreamObserver<BarrageMessageWriter.MessageView> listener, String ticketLogName, BarrageMessageWriter.Factory streamGeneratorFactory) Processes a snapshot request using the provided parameters.subscribe
(io.deephaven.barrage.flatbuf.BarrageSubscriptionRequest subscriptionRequest, BarrageSubscriptionOptions options, Object export, io.grpc.stub.StreamObserver<BarrageMessageWriter.MessageView> listener) Subscribes to a Barrage stream using the provided subscription request and options.
-
Constructor Details
-
HierarchicalTableViewExchangeMarshaller
public HierarchicalTableViewExchangeMarshaller(HierarchicalTableViewSubscription.Factory htvsFactory)
-
-
Method Details
-
priority
public int priority()Description copied from interface:ExchangeMarshaller
The priority of this marshaller.All available marshallers are consulted in sequence, in ascending numerical priority. The first (lowest numerical priority) marshaller to accept an object is used.
- Specified by:
priority
in interfaceExchangeMarshaller
- Returns:
- the priority of this marshaller
-
accept
Description copied from interface:ExchangeMarshaller
Does this marshaller accept the given export?- Specified by:
accept
in interfaceExchangeMarshaller
- Parameters:
export
- the object to test- Returns:
- true if this marshaller should be used, false to use the remainder of the marshaller chain
-
snapshot
public void snapshot(io.deephaven.barrage.flatbuf.BarrageSnapshotRequest snapshotRequest, BarrageSnapshotOptions options, Object export, BarragePerformanceLog.SnapshotMetricsHelper metrics, io.grpc.stub.StreamObserver<BarrageMessageWriter.MessageView> listener, String ticketLogName, BarrageMessageWriter.Factory streamGeneratorFactory) Description copied from interface:ExchangeMarshaller
Processes a snapshot request using the provided parameters.- Specified by:
snapshot
in interfaceExchangeMarshaller
- Parameters:
snapshotRequest
- the request specifying details for the snapshot operationoptions
- the configuration options for the snapshot, such as batch size or message size limitsexport
- the object to be exported as part of the snapshotmetrics
- helper for recording and reporting snapshot performance metricslistener
- the observer to handle messages generated during the snapshot processticketLogName
- the name of the ticket log associated with the snapshot requeststreamGeneratorFactory
- the factory to generate message streams for the snapshot operation
-
subscribe
public ExchangeMarshaller.Subscription subscribe(io.deephaven.barrage.flatbuf.BarrageSubscriptionRequest subscriptionRequest, BarrageSubscriptionOptions options, Object export, io.grpc.stub.StreamObserver<BarrageMessageWriter.MessageView> listener) Description copied from interface:ExchangeMarshaller
Subscribes to a Barrage stream using the provided subscription request and options.- Specified by:
subscribe
in interfaceExchangeMarshaller
- Parameters:
subscriptionRequest
- the request specifying the details of the subscriptionoptions
- the options to configure the subscriptionexport
- the exported object to be subscribedlistener
- the listener to handle messages generated by the subscription- Returns:
- a Subscription object to manage the lifecycle of the Barrage subscription
-