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
.static void
writeTableLocationMetadataIndex
(LocalTablePathManager pathManager, TableKey tableKey, TableLocationMetadataIndex tableLocationMetadataIndex) Write aTableLocationMetadataIndex
file for the suppliedTableKey
and index.static void
writeTableLocationMetadataIndex
(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 persistentTableLocationMetadataIndex
for 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 aTableLocationMetadataIndex
file for the suppliedTableKey
and 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 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
-