Class EntityDocumentFactory.EntityDocumentBuilder<T extends WithId,C extends EntityDocumentFactory.EntityDocumentBuilder<T,C>>

java.lang.Object
com.atlassian.jira.index.EntityDocumentFactory.EntityDocumentBuilder<T,C>
Enclosing interface:
EntityDocumentFactory<T extends WithId>

public abstract static class EntityDocumentFactory.EntityDocumentBuilder<T extends WithId,C extends EntityDocumentFactory.EntityDocumentBuilder<T,C>> extends Object
  • Field Details

    • doc

      protected final org.apache.lucene.document.Document doc
  • Constructor Details

  • Method Details

    • getDocId

      protected abstract String getDocId(T entity)
    • getIndexName

      protected abstract IndexDirectoryFactory.Name getIndexName()
    • addSearchableField

      public C addSearchableField(String name, String value, org.apache.lucene.document.Field.Store store)
    • addSortableField

      public C addSortableField(String name, String value)
    • addId

      protected C addId(String id)
    • addJoinParent

      public C addJoinParent(String id)
    • getDocumentType

      protected abstract String getDocumentType()
    • build

      public Optional<org.apache.lucene.document.Document> build()