Class TableSnapshot

java.lang.Object
com.illumon.iris.db.plot.util.tables.TableSnapshot

public class TableSnapshot extends Object
Computes snapshots of a BaseTable. On every table update a snapshot request is given to the FigureTableSnapshotManager. A snapshot is a map from the column name to the columns data.
  • Field Details

    • ZERO_LENGTH_ARRAY

      public static final TableSnapshot[] ZERO_LENGTH_ARRAY
  • Constructor Details

  • Method Details

    • getTable

      public BaseTable getTable()
    • getSnapshotData

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

      public void freeze()
      The snapshotReference will not be updated until this is thawed.
    • thaw

      public boolean thaw()
      createSnapshot will once again update the snapshotReference. snapshotReference will be set to the last snapshot constructed during the freeze, if one exists.
      Returns:
      whether a snapshot was constructed while frozen
    • onClose

      public void onClose()
      Operations to perform once a plot is closed.
    • addTableSnapshotChangeListener

      public void addTableSnapshotChangeListener(TableSnapshotChangeListener listener)
    • removeTableSnapshotChangeListeners

      public void removeTableSnapshotChangeListeners()
      Removes all table snapshot change listeners
    • removeTableSnapshotChangeListener

      public void removeTableSnapshotChangeListener(TableSnapshotChangeListener tableSnapshotChangeListener)
      Removes specified table snapshot change listener
      Parameters:
      tableSnapshotChangeListener - listener to remove