Class TableLocationMetadataIndex
java.lang.Object
com.illumon.iris.db.v2.locations.local.TableLocationMetadataIndex
Table location metadata index support, in order to avoid depending on filesystem metadata caching for performance
where possible.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Independent of the key, we should know our format, size, last modified time, and column version.static final class
Immutable snapshot of a table location, providing access to all key and state fields, constructed using a consistent copy of the state fields. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionTableLocationMetadataIndex
(TableLocationMetadataIndex.TableLocationSnapshot[] tableLocationSnapshots) Internal-only constructor from an array of snapshots. -
Method Summary
Modifier and TypeMethodDescriptiongetTableLocationSnapshot
(TableLocationKey tableLocationKey) Get theTableLocationMetadataIndex.TableLocationSnapshot
for the specifiedTableLocationKey
if it exists.Get allTableLocationMetadataIndex.TableLocationSnapshot
s for this index.
-
Field Details
-
FIRST_SUPPORTED_VERSION
public static final int FIRST_SUPPORTED_VERSION- See Also:
-
CURRENT_VERSION
public static final int CURRENT_VERSION- See Also:
-
-
Constructor Details
-
TableLocationMetadataIndex
@VisibleForTesting public TableLocationMetadataIndex(@NotNull TableLocationMetadataIndex.TableLocationSnapshot[] tableLocationSnapshots) Internal-only constructor from an array of snapshots.- Parameters:
tableLocationSnapshots
- The array of snapshots
-
-
Method Details
-
getTableLocationSnapshots
Get allTableLocationMetadataIndex.TableLocationSnapshot
s for this index.- Returns:
- The snapshots
-
getTableLocationSnapshot
public TableLocationMetadataIndex.TableLocationSnapshot getTableLocationSnapshot(@NotNull TableLocationKey tableLocationKey) Get theTableLocationMetadataIndex.TableLocationSnapshot
for the specifiedTableLocationKey
if it exists.- Parameters:
tableLocationKey
- The location key- Returns:
- The snapshot if it exists, else null
-