Class LocalMetadataIndexer
java.lang.Object
com.illumon.iris.db.v2.locations.local.LocalMetadataIndexer
Local metadata indexing tool.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic TablemetadataTable(@NotNull OnDiskQueryDatabase db, @NotNull String namespace, @NotNull String tableName) static TablemetadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, TableLocationMetadataIndex mdi) static TablemetadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, Collection<TableLocationMetadataIndex.TableLocationSnapshot> tableLocationSnapshots) static @Nullable TableLocationMetadataIndexreadTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey) Read theTableLocationMetadataIndexfile for the supplied table key.static voidupdateIndex(@NotNull LocalTableDataService service, @NotNull TableKey tableKey) Update the persistentTableLocationMetadataIndexfor the specifiedTableKey.static voidwriteTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey, @NotNull TableLocationMetadataIndex tableLocationMetadataIndex) Write aTableLocationMetadataIndexfile for the suppliedTableKeyand index.static voidwriteTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey, @NotNull Collection<TableLocation> tableLocations)
-
Field Details
-
ENABLED
public static final boolean ENABLED
-
-
Constructor Details
-
LocalMetadataIndexer
public LocalMetadataIndexer()
-
-
Method Details
-
updateIndex
public static void updateIndex(@NotNull @NotNull LocalTableDataService service, @NotNull @NotNull TableKey tableKey) Update the persistentTableLocationMetadataIndexfor the specifiedTableKey.- Parameters:
service- The source for table location informationtableKey- The table key
-
writeTableLocationMetadataIndex
public static void writeTableLocationMetadataIndex(@NotNull @NotNull LocalTablePathManager pathManager, @NotNull @NotNull TableKey tableKey, @NotNull @NotNull TableLocationMetadataIndex tableLocationMetadataIndex) Write aTableLocationMetadataIndexfile for the suppliedTableKeyand index.- Parameters:
pathManager- The path managertableKey- The table keytableLocationMetadataIndex- The index
-
writeTableLocationMetadataIndex
public static void writeTableLocationMetadataIndex(@NotNull @NotNull LocalTablePathManager pathManager, @NotNull @NotNull TableKey tableKey, @NotNull @NotNull Collection<TableLocation> tableLocations) - Parameters:
pathManager- The path managertableKey- The table keytableLocations- The locations
-
readTableLocationMetadataIndex
@Nullable public static @Nullable TableLocationMetadataIndex readTableLocationMetadataIndex(@NotNull @NotNull LocalTablePathManager pathManager, @NotNull @NotNull TableKey tableKey) Read theTableLocationMetadataIndexfile for the supplied table key.- Parameters:
pathManager- The path managertableKey- The table key- Returns:
- The index if the file was found and readable, else null
-
metadataTable
public static Table metadataTable(@NotNull @NotNull OnDiskQueryDatabase db, @NotNull @NotNull String namespace, @NotNull @NotNull String tableName) -
metadataTable
public static Table metadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, TableLocationMetadataIndex mdi) -
metadataTable
public static Table metadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, Collection<TableLocationMetadataIndex.TableLocationSnapshot> tableLocationSnapshots) -
main
-