Class TableLocationMetadataIndex.TableLocationSnapshot
java.lang.Object
com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex.TableLocationSnapshot
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
,TableLocationKey
,NamedImplementation
- Enclosing class:
- TableLocationMetadataIndex
public static final class TableLocationMetadataIndex.TableLocationSnapshot extends Object implements TableLocationKey
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
Constructors Constructor Description TableLocationSnapshot(String internalPartition, String columnPartition, TableLocation.Format format, long size, long lastModifiedTimeMillis, int columnVersion)
-
Method Summary
Modifier and Type Method Description String
getColumnPartition()
int
getColumnVersion()
TableLocation.Format
getFormat()
String
getInternalPartition()
long
getLastModifiedTimeMillis()
long
getSize()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
- Returns:
- The snapshotted format
-
getSize
public long getSize()- Returns:
- The snapshotted size
-
getLastModifiedTimeMillis
public long getLastModifiedTimeMillis()- Returns:
- The snapshotted last modified time in milliseconds
-
getColumnVersion
public int getColumnVersion()
-