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 void
static Table
metadataTable
(OnDiskQueryDatabase db, String namespace, String tableName) static Table
metadataTable
(TableLookupKey tlk, LocalTablePathManager ltpm, TableLocationMetadataIndex mdi) static Table
metadataTable
(TableLookupKey tlk, LocalTablePathManager ltpm, Collection<TableLocationMetadataIndex.TableLocationSnapshot> tableLocationSnapshots) static TableLocationMetadataIndex
readTableLocationMetadataIndex
(LocalTablePathManager pathManager, TableKey tableKey) Read theTableLocationMetadataIndex
file for the supplied table key.static void
updateIndex
(LocalTableDataService service, TableKey tableKey) Update the persistentTableLocationMetadataIndex
for the specifiedTableKey
.
-
Field Details
-
ENABLED
public static final boolean ENABLED
-
-
Constructor Details
-
LocalMetadataIndexer
public LocalMetadataIndexer()
-
-
Method Details
-
updateIndex
Update the persistentTableLocationMetadataIndex
for the specifiedTableKey
.- Parameters:
service
- The source for table location informationtableKey
- The table key
-
readTableLocationMetadataIndex
@Nullable public static TableLocationMetadataIndex readTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey) Read theTableLocationMetadataIndex
file 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
-