Package com.atlassian.jira.index
Interface EntityDocumentFactory<T extends WithId>
- All Known Subinterfaces:
ChangeHistoryDocumentFactory,CommentDocumentFactory,IssueDocumentFactory,RelatedEntityDocumentFactory<T>,WorklogDocumentFactory
- All Known Implementing Classes:
DefaultChangeHistoryDocumentFactory,DefaultCommentDocumentFactory,DefaultIssueDocumentFactory,DefaultWorklogDocumentFactory
public interface EntityDocumentFactory<T extends WithId>
Converts provided entity to Lucene documents for indexing.
- Since:
- v6.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classEntityDocumentFactory.EntityDocumentBuilder<T extends WithId,C extends EntityDocumentFactory.EntityDocumentBuilder<T, C>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.lucene.document.Document> createDocument(EntityWithVersion<T> entity) default Map<EntityWithVersion<T>, Optional<org.apache.lucene.document.Document>> createDocuments(List<EntityWithVersion<T>> entities)
-
Field Details
-
LOG
static final org.slf4j.Logger LOG -
ENTITY_VERSION_ZERO
-
-
Method Details
-
createDocument
-
createDocuments
default Map<EntityWithVersion<T>,Optional<org.apache.lucene.document.Document>> createDocuments(List<EntityWithVersion<T>> entities)
-