com.atlassian.jira.index
Class EntityDocumentFactory.EntityDocumentBuilder<T,C extends EntityDocumentFactory.EntityDocumentBuilder<T,C>>

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

public abstract static class EntityDocumentFactory.EntityDocumentBuilder<T,C extends EntityDocumentFactory.EntityDocumentBuilder<T,C>>
extends Object


Field Summary
protected  org.apache.lucene.document.Document doc
           
 
Constructor Summary
protected EntityDocumentFactory.EntityDocumentBuilder(T entity, String indexName)
           
 
Method Summary
 C addAllExtractors(Collection<EntitySearchExtractor<T>> extractors)
           
 C addField(String name, String value, org.apache.lucene.document.Field.Store store, org.apache.lucene.document.Field.Index index)
           
 C addKeywordWithDefault(String name, Long value, String defaultValue)
           
 C addKeywordWithDefault(String name, String value, String defaultValue)
           
 com.atlassian.fugue.Option<org.apache.lucene.document.Document> build()
           
protected  void fieldsAddedByExtractor(Set<String> fieldIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected final org.apache.lucene.document.Document doc
Constructor Detail

EntityDocumentFactory.EntityDocumentBuilder

protected EntityDocumentFactory.EntityDocumentBuilder(T entity,
                                                      String indexName)
Method Detail

addAllExtractors

public C addAllExtractors(Collection<EntitySearchExtractor<T>> extractors)

addField

public C addField(String name,
                  String value,
                  org.apache.lucene.document.Field.Store store,
                  org.apache.lucene.document.Field.Index index)

addKeywordWithDefault

public C addKeywordWithDefault(String name,
                               String value,
                               String defaultValue)

addKeywordWithDefault

public C addKeywordWithDefault(String name,
                               Long value,
                               String defaultValue)

fieldsAddedByExtractor

protected void fieldsAddedByExtractor(Set<String> fieldIds)

build

public com.atlassian.fugue.Option<org.apache.lucene.document.Document> build()


Copyright © 2002-2014 Atlassian. All Rights Reserved.