Class LocalMetadataIndexer
java.lang.Object
com.illumon.iris.db.v2.locations.local.LocalMetadataIndexer
Local metadata indexing tool.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
ENABLEDpublic static final boolean ENABLED
 
- 
- 
Constructor Details- 
LocalMetadataIndexerpublic LocalMetadataIndexer()
 
- 
- 
Method Details- 
updateIndexUpdate the persistentTableLocationMetadataIndexfor the specifiedTableKey.- Parameters:
- service- The source for table location information
- tableKey- The table key
 
- 
writeTableLocationMetadataIndexpublic static void writeTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey, @NotNull TableLocationMetadataIndex tableLocationMetadataIndex) Write aTableLocationMetadataIndexfile for the suppliedTableKeyand index.- Parameters:
- pathManager- The path manager
- tableKey- The table key
- tableLocationMetadataIndex- The index
 
- 
writeTableLocationMetadataIndexpublic static void writeTableLocationMetadataIndex(@NotNull LocalTablePathManager pathManager, @NotNull TableKey tableKey, @NotNull Collection<TableLocation> tableLocations) - Parameters:
- pathManager- The path manager
- tableKey- The table key
- tableLocations- 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 manager
- tableKey- The table key
- Returns:
- The index if the file was found and readable, else null
 
- 
metadataTablepublic static Table metadataTable(@NotNull OnDiskQueryDatabase db, @NotNull String namespace, @NotNull String tableName) 
- 
metadataTablepublic static Table metadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, TableLocationMetadataIndex mdi) 
- 
metadataTablepublic static Table metadataTable(TableLookupKey tlk, LocalTablePathManager ltpm, Collection<TableLocationMetadataIndex.TableLocationSnapshot> tableLocationSnapshots) 
- 
main
 
-