Class TableLocationMetadataIndex.TableLocationSnapshot
java.lang.Object
com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex.TableLocationSnapshot
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,TableLocationMetadataIndex.LocationSnapshot,TableLocationKey,NamedImplementation
- Enclosing class:
- TableLocationMetadataIndex
public static final class TableLocationMetadataIndex.TableLocationSnapshot
extends Object
implements TableLocationKey, TableLocationMetadataIndex.LocationSnapshot
Immutable snapshot of a table location, providing access to all key and state fields, constructed using a
consistent copy of the state fields.
-
Nested Class Summary
Nested 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_PARTITION -
Constructor Summary
ConstructorsConstructorDescriptionTableLocationSnapshot(String internalPartition, String columnPartition, TableLocation.Format format, long size, long lastModifiedTimeMillis, int columnVersion) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationNameMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
append, toStringHelper, writeTo
-
Constructor Details
-
TableLocationSnapshot
@VisibleForTesting public TableLocationSnapshot(@NotNull String internalPartition, @NotNull String columnPartition, @NotNull TableLocation.Format format, long size, long lastModifiedTimeMillis, int columnVersion)
-
-
Method Details
-
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
-
getFormat
Description copied from interface:TableLocationMetadataIndex.LocationSnapshot- Specified by:
getFormatin interfaceTableLocationMetadataIndex.LocationSnapshot- Returns:
- The snapshotted format
-
getSize
public long getSize()Description copied from interface:TableLocationMetadataIndex.LocationSnapshot- Specified by:
getSizein interfaceTableLocationMetadataIndex.LocationSnapshot- Returns:
- The snapshotted size
-
getLastModifiedTimeMillis
public long getLastModifiedTimeMillis()Description copied from interface:TableLocationMetadataIndex.LocationSnapshot- Specified by:
getLastModifiedTimeMillisin interfaceTableLocationMetadataIndex.LocationSnapshot- Returns:
- The snapshotted last modified time in milliseconds
-
getColumnVersion
public int getColumnVersion()Description copied from interface:TableLocationMetadataIndex.LocationSnapshot- Specified by:
getColumnVersionin interfaceTableLocationMetadataIndex.LocationSnapshot- Returns:
- the version of column files in this directory
-