Package io.jmix.search.index
Class IndexConfiguration
java.lang.Object
io.jmix.search.index.IndexConfiguration
Contains configuration of index related to some entity
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Class<?>protected final Stringprotected final ExtendedSearchSettingsprotected final Stringprotected final IndexMappingConfiguration
- 
Constructor SummaryConstructorsConstructorDescriptionIndexConfiguration(String entityName, Class<?> entityClass, String indexName, IndexMappingConfiguration mapping, Set<Class<?>> affectedEntityClasses, Predicate<Object> indexablePredicate, ExtendedSearchSettings extendedSearchSettings) 
- 
Method SummaryModifier 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- 
IndexConfigurationpublic IndexConfiguration(String entityName, Class<?> entityClass, String indexName, IndexMappingConfiguration mapping, Set<Class<?>> affectedEntityClasses, Predicate<Object> indexablePredicate, ExtendedSearchSettings extendedSearchSettings) 
 
- 
- 
Method Details- 
getEntityNameGets name of entity indexed in this index- Returns:
- entity name
 
- 
getEntityClassGets java class of entity indexed in this index- Returns:
- java class
 
- 
getIndexNameGets name of this index- Returns:
- index name
 
- 
getMappingGets mapping of this index- Returns:
- mapping configuration
 
- 
getAffectedEntityClassesGets java classes of all entities presented in indexed properties. Transitive entities are included too.- Returns:
- set of java classes
 
- 
getIndexablePredicateGetsPredicate<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
 
-