Package io.jmix.search.index.impl
Class IndexSettingsComparator<TState,TSettings,TJsonp>
java.lang.Object
io.jmix.search.index.impl.IndexSettingsComparator<TState,TSettings,TJsonp>
- Type Parameters:
TState
- the received from the server index state typeTSettings
- specific for the search client settings typeTJsonp
- specific for the search client Jsonp type
- Direct Known Subclasses:
ElastisearchIndexSettingsComparator
,OpenSearchIndexSettingsComparator
Class encapsulates logic of both the settings from the application's index configuration
and the settings from the index state from the search server comparing.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final JsonNodesComparator
protected final JsonpSerializer<TJsonp>
-
Constructor Summary
ConstructorDescriptionIndexSettingsComparator
(JsonpSerializer<TJsonp> jsonpSerializer, JsonNodesComparator jsonNodesComparator) -
Method Summary
Modifier and TypeMethodDescriptioncompareSettings
(IndexConfiguration indexConfiguration, TState currentIndexState) extractAppliedIndexSettings
(TState currentIndexState) protected TJsonp
getAppliedIndexSettings
(TState indexState, String indexName) protected abstract TJsonp
getExpectedIndexSettings
(IndexConfiguration indexConfiguration)
-
Field Details
-
jsonpSerializer
-
jsonNodesComparator
-
-
Constructor Details
-
IndexSettingsComparator
public IndexSettingsComparator(JsonpSerializer<TJsonp> jsonpSerializer, JsonNodesComparator jsonNodesComparator)
-
-
Method Details
-
compareSettings
public SettingsComparingResult compareSettings(IndexConfiguration indexConfiguration, TState currentIndexState) -
getAppliedIndexSettings
-
extractAppliedIndexSettings
-
getExpectedIndexSettings
-