Class DefaultEntityFieldValuesFactory
java.lang.Object
com.atlassian.jira.search.issue.index.DefaultEntityFieldValuesFactory
- All Implemented Interfaces:
EntityFieldValuesFactory
Default implementation of
EntityFieldValuesFactory.- Since:
- 11.1
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEntityFieldValuesFactory(IndexAccessorRegistry indexAccessorRegistry, IndexExtractorRegistrationManager indexExtractorRegistrationManager) -
Method Summary
Modifier and TypeMethodDescription<T extends WithId>
Map<T, FieldValues> createFieldValues(Class<T> clazz, List<T> entities) Batching API so that field values factories (and in turn extractors) can handle multiple entities.<T extends WithId>
FieldValuescreateFieldValues(Class<T> clazz, T entity)
-
Constructor Details
-
DefaultEntityFieldValuesFactory
public DefaultEntityFieldValuesFactory(IndexAccessorRegistry indexAccessorRegistry, IndexExtractorRegistrationManager indexExtractorRegistrationManager)
-
-
Method Details
-
createFieldValues
- Specified by:
createFieldValuesin interfaceEntityFieldValuesFactory
-
createFieldValues
Description copied from interface:EntityFieldValuesFactoryBatching API so that field values factories (and in turn extractors) can handle multiple entities.- Specified by:
createFieldValuesin interfaceEntityFieldValuesFactory- Type Parameters:
T- The type of the entity to index.- Parameters:
clazz- The type of the entity to index.entities- One or more entities.- Returns:
- The field values indexed by entity.
-