Class TicketTable

java.lang.Object
io.deephaven.qst.table.TableBase
io.deephaven.qst.table.TicketTable
All Implemented Interfaces:
TableOperations<TableSpec,TableSpec>, TableOperationsDefaults<TableSpec,TableSpec>, TableSchema, TableSpec

@Immutable public abstract class TicketTable extends TableBase
A ticket table is a byte format that allows callers to reference an existing table via ticket. The ticket bytes are opaque; the byte-format may change from release to release.
  • Constructor Details

    • TicketTable

      public TicketTable()
  • Method Details

    • of

      public static TicketTable of(byte[] ticket)
      Create a ticket table with the ticket bytes.
      Parameters:
      ticket - the ticket
      Returns:
      the ticket table
    • of

      @Deprecated public static TicketTable of(String ticket)
      Deprecated.
      prefer to be explicit and either use of(byte[]) or fromQueryScopeField(String)
      Create a ticket table with the UTF-8 bytes from the ticket string.
      Parameters:
      ticket - the ticket string
      Returns:
      the ticket table
    • fromQueryScopeField

      public static TicketTable fromQueryScopeField(String fieldName)
      Create a ticket table from the provided fieldName.
      Parameters:
      fieldName - the query scope field name
      Returns:
      the ticket table
    • fromApplicationField

      public static TicketTable fromApplicationField(String applicationId, String fieldName)
      Create a ticket table from the provided applicationId and fieldName.
      Parameters:
      applicationId - the application id
      fieldName - the application field name
      Returns:
      the ticket table
    • ticket

      @Parameter public abstract byte[] ticket()
      The ticket.
      Returns:
      the ticket
    • walk

      public final <T> T walk(TableSpec.Visitor<T> visitor)