@API(value=STABLE) public interface IndexMaintainerFactory
IndexMaintainer
.
An index maintainer factory is associated with one or more index types.
It is also responsible for validation of Index
meta-data.
An index maintainer factory would typically be annotated to allow the classpath-based registry to find it.
@AutoService(IndexMaintainerFactory.class)
IndexMaintainerRegistry
Modifier and Type | Method and Description |
---|---|
IndexMaintainer |
getIndexMaintainer(IndexMaintainerState state)
Get an index maintainer for the given record store and index meta-data.
|
Iterable<String> |
getIndexTypes()
Get the index types supported by this factory.
|
IndexValidator |
getIndexValidator(Index index)
Get a validator for the given index meta-data.
|
@Nonnull Iterable<String> getIndexTypes()
@Nonnull IndexValidator getIndexValidator(Index index)
index
- an index that was produced by this factory@Nonnull IndexMaintainer getIndexMaintainer(IndexMaintainerState state)
state
- the state of the new index maintainer