Class TableLocationStateHolder
java.lang.Object
io.deephaven.engine.table.impl.locations.TableLocationStateHolder
- All Implemented Interfaces:
TableLocationState
Tool for generic multi-field "atomic" get/set of state values for a table location. NB: Possibly-concurrent usages
should be externally synchronized.
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.impl.locations.TableLocationState
NULL_SIZE, NULL_TIME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.impl.locations.TableLocationState
copyStateValuesTo
-
Constructor Details
-
TableLocationStateHolder
public TableLocationStateHolder()
-
-
Method Details
-
getStateLock
- Specified by:
getStateLockin interfaceTableLocationState- Returns:
- The Object that accessors should synchronize on if they want to invoke multiple getters with consistent results.
-
getRowSet
- Specified by:
getRowSetin interfaceTableLocationState- Returns:
- The (possibly-empty)
RowSetof a table location, ornullif RowSet information is unknown or does not exist for this table location.
-
getSize
public final long getSize()- Specified by:
getSizein interfaceTableLocationState- Returns:
- The size of a table location:
NULL_SIZE: Size information is unknown or does not exist for this location
>= 0: The table location exists and has (possibly empty) data
-
getLastModifiedTimeMillis
public final long getLastModifiedTimeMillis()- Specified by:
getLastModifiedTimeMillisin interfaceTableLocationState- Returns:
- The last modified time for a table location, in milliseconds from the epoch:
NULL_TIME: Modification time information is unknown or does not exist for this location
>= 0: The time this table was last modified, in milliseconds from the UTC epoch
-
clearValues
protected final void clearValues()Clear this holder, by reinitializing all fields to their "null" equivalents. -
setValues
Set all state values.- Parameters:
rowSet- The new RowSet. Ownership passes to this holder; callers shouldcopyit if necessary.lastModifiedTimeMillis- The new modification time- Returns:
- Whether any of the values changed
-