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(OnDiskQueryDatabase db, String namespace, String tableName) static TablemetadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, TableLocationMetadataIndex mdi) static TablemetadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, Collection<TableLocationMetadataIndex.TableLocationSnapshot> tableLocationSnapshots) static TableLocationMetadataIndexreadTableLocationMetadataIndex(LocalTablePathManager pathManager, TableKey tableKey) Read theTableLocationMetadataIndexfile for the supplied table key.static voidupdateIndex(LocalTableDataService service, TableKey tableKey) Update the persistentTableLocationMetadataIndexfor the specifiedTableKey.static voidwriteTableLocationMetadataIndex(LocalTablePathManager pathManager, TableKey tableKey, TableLocationMetadataIndex tableLocationMetadataIndex) Write aTableLocationMetadataIndexfile for the suppliedTableKeyand index.static voidwriteTableLocationMetadataIndex(LocalTablePathManager pathManager, TableKey tableKey, Collection<TableLocation> tableLocations)
-
Field Details
-
ENABLED
public static final boolean ENABLED
-
-
Constructor Details
-
LocalMetadataIndexer
public LocalMetadataIndexer()
-
-
Method Details
-
updateIndex
Update the persistentTableLocationMetadataIndexfor the specifiedTableKey.- Parameters:
service- The source for table location informationtableKey- The table key
-
writeTableLocationMetadataIndex
public static void writeTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey, @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 LocalTablePathManager pathManager, @NotNull TableKey tableKey, @NotNull Collection<TableLocation> tableLocations) - Parameters:
pathManager- The path managertableKey- The table keytableLocations- The locations
-
readTableLocationMetadataIndex
@Nullable public static TableLocationMetadataIndex readTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @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 OnDiskQueryDatabase db, @NotNull String namespace, @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
-