Package io.jmix.search.index
Class IndexConfiguration
java.lang.Object
io.jmix.search.index.IndexConfiguration
Contains configuration of index related to some entity
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Class<?>
protected final String
protected final ExtendedSearchSettings
protected final String
protected final IndexMappingConfiguration
-
Constructor Summary
ConstructorDescriptionIndexConfiguration
(String entityName, Class<?> entityClass, String indexName, IndexMappingConfiguration mapping, Set<Class<?>> affectedEntityClasses, Predicate<Object> indexablePredicate, ExtendedSearchSettings extendedSearchSettings) -
Method Summary
Modifier and TypeMethodDescriptionGets java classes of all entities presented in indexed properties.Class<?>
Gets java class of entity indexed in this indexGets name of entity indexed in this indexGets name of this indexGets mapping of this index
-
Field Details
-
entityName
-
entityClass
-
affectedEntityClasses
-
indexName
-
mapping
-
indexablePredicate
-
extendedSearchSettings
-
-
Constructor Details
-
IndexConfiguration
public IndexConfiguration(String entityName, Class<?> entityClass, String indexName, IndexMappingConfiguration mapping, Set<Class<?>> affectedEntityClasses, Predicate<Object> indexablePredicate, ExtendedSearchSettings extendedSearchSettings)
-
-
Method Details
-
getEntityName
Gets name of entity indexed in this index- Returns:
- entity name
-
getEntityClass
Gets java class of entity indexed in this index- Returns:
- java class
-
getIndexName
Gets name of this index- Returns:
- index name
-
getMapping
Gets mapping of this index- Returns:
- mapping configuration
-
getAffectedEntityClasses
Gets java classes of all entities presented in indexed properties. Transitive entities are included too.- Returns:
- set of java classes
-
getIndexablePredicate
GetsPredicate
<Object
> that will be applied to every entity instance during indexing process. Only instances passed the predicate check will be indexed. Predicate is not used during deletion process.- Returns:
- indexable predicate
-
getExtendedSearchSettings
-