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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TableHandle(Table table, boolean subscribeToPreemptiveUpdates, String... columns)TableHandle(Table table, String... columns) -
Method Summary
Modifier and Type Method Description voidaddColumn(String column)booleanequals(Object o)voidfreezeSnapshots()Set<String>getColumns()TableDefinitiongetFinalTableDefinition()Get theTableDefinitionof the table that will be handed off to actual plotting methods.Map<String,Object>getSnapshotData()TablegetTable()TableSnapshotgetTableSnapshot()booleanhasColumns(String... cols)inthashCode()intid()booleanisSubscribeToPreemptiveUpdates()voidsetTable(Table table)voidsetTableSnapshot(TableSnapshot tableSnapshot)booleanthawSnapshots()
-
Constructor Details
-
Method Details
-
id
public int id() -
addColumn
-
getColumns
-
isSubscribeToPreemptiveUpdates
public boolean isSubscribeToPreemptiveUpdates() -
hasColumns
-
getTable
-
getFinalTableDefinition
Get theTableDefinitionof 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 bygetTable()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
TableDefinitionof the plotted table.
-
setTable
-
setTableSnapshot
-
getTableSnapshot
-
getSnapshotData
-
freezeSnapshots
public void freezeSnapshots() -
thawSnapshots
public boolean thawSnapshots() -
equals
-
hashCode
public int hashCode()
-