Class IndexStateResolver<TState,TJsonp>

java.lang.Object
io.jmix.search.index.impl.IndexStateResolver<TState,TJsonp>
Type Parameters:
TState - search client's specific index state type
TJsonp - search client's specific Jsonp type
Direct Known Subclasses:
ElasticsearchIndexStateResolver, OpenSearchIndexStateResolver

public abstract class IndexStateResolver<TState,TJsonp> extends Object
Class encapsulates the logic of receiving the index state from the search engine service.
  • Field Details

    • objectMapper

      protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • jsonpSerializer

      protected final JsonpSerializer<TJsonp> jsonpSerializer
  • Constructor Details

  • Method Details

    • getSerializedState

      public com.fasterxml.jackson.databind.node.ObjectNode getSerializedState(String indexName)
    • getState

      @Nullable public TState getState(String indexName)
    • getIndexMetadataMapInternal

      protected abstract Map<String,TState> getIndexMetadataMapInternal(String indexName)