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 void
addColumn(String column)
boolean
equals(Object o)
void
freezeSnapshots()
Set<String>
getColumns()
TableDefinition
getFinalTableDefinition()
Get theTableDefinition
of the table that will be handed off to actual plotting methods.Map<String,Object>
getSnapshotData()
Table
getTable()
TableSnapshot
getTableSnapshot()
boolean
hasColumns(String... cols)
int
hashCode()
int
id()
boolean
isSubscribeToPreemptiveUpdates()
void
setTable(Table table)
void
setTableSnapshot(TableSnapshot tableSnapshot)
boolean
thawSnapshots()
-
Constructor Details
-
Method Details
-
id
public int id() -
addColumn
-
getColumns
-
isSubscribeToPreemptiveUpdates
public boolean isSubscribeToPreemptiveUpdates() -
hasColumns
-
getTable
-
getFinalTableDefinition
Get theTableDefinition
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 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
TableDefinition
of the plotted table.
-
setTable
-
setTableSnapshot
-
getTableSnapshot
-
getSnapshotData
-
freezeSnapshots
public void freezeSnapshots() -
thawSnapshots
public boolean thawSnapshots() -
equals
-
hashCode
public int hashCode()
-