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, wait
Methods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
Methods 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:
getInternalPartition
in interfaceTableLocationKey
- Returns:
- The internal partition that encloses the identified table location, or null if none exists
-
getColumnPartition
- Specified by:
getColumnPartition
in 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:
getFormat
in interfaceTableLocationMetadataIndex.LocationSnapshot
- Returns:
- The snapshotted format
-
getSize
public long getSize()Description copied from interface:TableLocationMetadataIndex.LocationSnapshot
- Specified by:
getSize
in interfaceTableLocationMetadataIndex.LocationSnapshot
- Returns:
- The snapshotted size
-
getLastModifiedTimeMillis
public long getLastModifiedTimeMillis()Description copied from interface:TableLocationMetadataIndex.LocationSnapshot
- Specified by:
getLastModifiedTimeMillis
in interfaceTableLocationMetadataIndex.LocationSnapshot
- Returns:
- The snapshotted last modified time in milliseconds
-
getColumnVersion
public int getColumnVersion()Description copied from interface:TableLocationMetadataIndex.LocationSnapshot
- Specified by:
getColumnVersion
in interfaceTableLocationMetadataIndex.LocationSnapshot
- Returns:
- the version of column files in this directory
-