snapshot

The snapshot method returns a snapshot of a published remote table that matches the specified ticket.

Note

If the remote table is closed or its owner session is closed, the ticket becomes invalid. If the same ticket is snapshot multiple times, multiple snapshots will be created.

Syntax

Parameters

ParameterTypeDescription
ticketbytes

The bytes of the ticket.

Returns

A static Table that is a snapshot of the remote table. Raises a DHError if the snapshot fails.

Examples

The following example installs the Deephaven Python Client (pydeephaven) and connects to a second Deephaven server on port 9999 that uses anonymous authentication (see the docker-compose.yml file below). Next, the remote server is used to create a table and a shared ticket pointing to the table that can be shared with other sessions. Finally, a Barrage session is started that listens to the same server at port 9999, and a snapshot of the shared ticket's table is obtained.

The following docker-compose.yml file was used to run the above code block. It starts two Deephaven servers: one running on port 10000 and the other on port 9999. The code block was run from the server running on port 10000.