Class TableHandle

java.lang.Object
com.illumon.iris.db.plot.util.tables.TableHandle
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeferredOperationTableHandle

public class TableHandle extends Object implements Serializable
A handle describing a remote table as well as the columns of the table that are needed.
See Also:
  • Constructor Details

    • TableHandle

      public TableHandle(@NotNull Table table, @NotNull String... columns)
    • TableHandle

      public TableHandle(@NotNull Table table, boolean subscribeToPreemptiveUpdates, @NotNull String... columns)
  • Method Details

    • id

      public int id()
    • addColumn

      public void addColumn(String column)
    • getColumns

      public Set<String> getColumns()
    • isSubscribeToPreemptiveUpdates

      public boolean isSubscribeToPreemptiveUpdates()
    • hasColumns

      public boolean hasColumns(String... cols)
    • getTable

      public Table getTable()
    • getFinalTableDefinition

      public TableDefinition getFinalTableDefinition()
      Get the TableDefinition of the table that will be handed off to actual plotting methods. This method is important because in some cases (ie when ACls are applied to source tables) computations must be deferred until after ACL application so that they are applied correctly. In this case, the table produced by getTable() may be the raw source table, not the final table. This method is used to get the final result table definition no matter what the preconditions are.
      Returns:
      The TableDefinition of the plotted table.
    • setTable

      public void setTable(Table table)
    • setTableSnapshot

      public void setTableSnapshot(TableSnapshot tableSnapshot)
    • getTableSnapshot

      public TableSnapshot getTableSnapshot()
    • getSnapshotData

      public Map<String,Object> getSnapshotData()
    • freezeSnapshots

      public void freezeSnapshots()
    • thawSnapshots

      public boolean thawSnapshots()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object