Class LocalMetadataIndexer
java.lang.Object
com.illumon.iris.db.v2.locations.local.LocalMetadataIndexer
public class LocalMetadataIndexer extends Object
Local metadata indexing tool.
-
Field Summary
Fields Modifier and Type Field Description static booleanENABLED -
Constructor Summary
Constructors Constructor Description LocalMetadataIndexer() -
Method Summary
Modifier and Type Method Description static voidmain(String... args)static TableLocationMetadataIndexreadTableLocationMetadataIndex(LocalTablePathManager pathManager, TableKey tableKey)Read theTableLocationMetadataIndexfile for the supplied table key.static voidupdateIndex(LocalTableDataService service, TableKey tableKey)Update the persistentTableLocationMetadataIndexfor the specifiedTableKey.
-
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
-
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
-
main
-