Package com.illumon.iris.db.v2.locations
Class DeferredTableLocation
java.lang.Object
com.illumon.iris.db.v2.locations.DeferredTableLocation
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,TableLocation,TableLocationKey,TableLocationState,NamedImplementation
- Direct Known Subclasses:
DeferredTableLocation.DataDriven,DeferredTableLocation.SnapshotDriven
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeferredTableLocation that needs to initialize its inner location for all non-key methods.static final classDeferredTableLocation that implements metadata getters by delegating to a snapshot.static interfaceNested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableLocation
TableLocation.Format, TableLocation.ListenerNested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
TableLocationKey.ComparatorImpl, TableLocationKey.KeyedObjectKeyImpl<VALUE_TYPE>, TableLocationKey.SelfKeyedObjectKeyImpl<VALUE_TYPE extends TableLocationKey> -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
COMPARATOR, NULL_PARTITIONFields inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
NULL_SIZE, NULL_TIME, REMOVE_SIZE -
Method Summary
Modifier and TypeMethodDescription<T extends TableLocation>
TvoidClear all column locations (usually because a truncated location was observed).final ColumnLocationfinal CharSequencefinal StringGet a name for the implementing class.final CharSequencefinal TableKeylonggetVisit()return the last value set inTableLocation.visit(long)voidhandleUpdate(long size, long lastModifiedTimeMillis) Update the TableLocation's state.final booleanCheck if this location has been visited in a way that required creation of the actual underlying location/final StringtoString()visit(long stamp) Mark this table location as visited, with the given (time)stamp.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocation
append, getColumnLocation, getDataIndex, getFormat, getSortedColumns, hasDataIndexFor, refresh, subscribe, supportsSubscriptions, toGenericString, toStringDetailed, toStringHelper, unsubscribeMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
writeToMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
copyStateValuesTo, getLastModifiedTimeMillis, getSize, getSizeStr, getStateLock, writeStateValuesTo
-
Method Details
-
visit
Description copied from interface:TableLocationMark this table location as visited, with the given (time)stamp.- Specified by:
visitin interfaceTableLocation- Parameters:
stamp- a monotonically increasing value indicating when this location was visited.- Returns:
- returns itself for chaining
-
getVisit
public long getVisit()Description copied from interface:TableLocationreturn the last value set inTableLocation.visit(long)- Specified by:
getVisitin interfaceTableLocation- Returns:
- the last value set in visit()
-
toString
-
getImplementationName
Description copied from interface:NamedImplementationGet a name for the implementing class. Useful for abstract classes that implement
LogOutputAppendableor overridetoString.The default implementation is correct, but not suitable for high-frequency usage.
- Specified by:
getImplementationNamein interfaceNamedImplementation- Returns:
- A name for the implementing class
-
getInternalPartition
- Specified by:
getInternalPartitionin interfaceTableLocationKey- Returns:
- The internal partition that encloses the identified table location, or null if none exists
-
getColumnPartition
- Specified by:
getColumnPartitionin interfaceTableLocationKey- Returns:
- The column partition that encloses the identified table location, or null if none exists
-
getTableKey
- Specified by:
getTableKeyin interfaceTableLocation- Returns:
- A TableKey instance for the enclosing table
-
getColumnLocation
- Specified by:
getColumnLocationin interfaceTableLocation- Parameters:
name- The column name- Returns:
- The ColumnLocation for the defined column under this table location
-
as
- Specified by:
asin interfaceTableLocation
-
isRealized
public final boolean isRealized()Check if this location has been visited in a way that required creation of the actual underlying location/- Returns:
- true of the location has been realized.
-
handleUpdate
public void handleUpdate(long size, long lastModifiedTimeMillis) Description copied from interface:TableLocationUpdate the TableLocation's state. See TableLocationState for documentation of values.For Deephaven internal use only.
- Specified by:
handleUpdatein interfaceTableLocation- Parameters:
size- The new sizelastModifiedTimeMillis- The new lastModificationTimeMillis
-
clearColumnLocations
public void clearColumnLocations()Description copied from interface:TableLocationClear all column locations (usually because a truncated location was observed).For Deephaven internal use only.
- Specified by:
clearColumnLocationsin interfaceTableLocation
-