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 TypeMethodDescriptionbooleanDoes this marshaller accept the given export?intpriority()The priority of this marshaller.voidsnapshot(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:ExchangeMarshallerThe 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:
priorityin interfaceExchangeMarshaller- Returns:
- the priority of this marshaller
-
accept
Description copied from interface:ExchangeMarshallerDoes this marshaller accept the given export?- Specified by:
acceptin 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:ExchangeMarshallerProcesses a snapshot request using the provided parameters.- Specified by:
snapshotin 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:ExchangeMarshallerSubscribes to a Barrage stream using the provided subscription request and options.- Specified by:
subscribein 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
-