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 boolean
ENABLED
-
Constructor Summary
Constructors Constructor Description LocalMetadataIndexer()
-
Method Summary
Modifier and Type Method Description static void
main(String... args)
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
-
main
-