Interface IndexInfoProvider
-
@ConsumerType public interface IndexInfoProvider
Service to be provided by various index implementations. This would then be used byIndexInfoService
for collecting information related to index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable IndexInfo
getInfo(String indexPath)
String
getType()
Index type for this implementation can provide informationboolean
isValid(String indexPath)
Determined if the index is valid and usable.
-
-
-
Method Detail
-
getType
String getType()
Index type for this implementation can provide information
-
getInfo
@Nullable @Nullable IndexInfo getInfo(String indexPath) throws IOException
- Throws:
IOException
-
isValid
boolean isValid(String indexPath) throws IOException
Determined if the index is valid and usable. If the index is corrupt then it returns false- Throws:
IOException
-
-