com.atlassian.jira.issue.index.indexers.impl
Class BaseFieldIndexer

java.lang.Object
  extended by com.atlassian.jira.issue.index.indexers.impl.BaseFieldIndexer
All Implemented Interfaces:
FieldIndexer
Direct Known Subclasses:
AffectedVersionsIndexer, AssigneeIndexer, BaseRenderableFieldIndexer, ComponentsIndexer, CreatedDateIndexer, CurrentEstimateIndexer, DueDateIndexer, FixForVersionsIndexer, IssueIdIndexer, IssueKeyIndexer, IssueTypeIndexer, OriginalEstimateIndexer, ParentIssueIndexer, PriorityIndexer, ProgressIndexer, ProjectIdIndexer, ReporterIndexer, ResolutionIndexer, SecurityIndexer, StatusIndexer, SubTaskIndexer, SummaryIndexer, TimeSpentIndexer, UpdatedDateIndexer, VotesIndexer, WorkRatioIndexer

public abstract class BaseFieldIndexer
extends Object
implements FieldIndexer


Field Summary
static String NO_VALUE_INDEX_VALUE
           
 
Constructor Summary
BaseFieldIndexer()
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 String getId()
           
 int hashCode()
           
static void indexDateField(org.apache.lucene.document.Document doc, String indexField, Timestamp date)
          Index a single keyword field, with a date value
static void indexDependentEntities(org.ofbiz.core.entity.GenericValue issue, org.apache.lucene.document.Document doc, String associationType, String indexField)
          Index the dependent entities of an issue.
static void indexKeyword(org.apache.lucene.document.Document doc, String indexField, String fieldValue)
          Index a single keyword field
static void indexKeywordWithDefault(org.apache.lucene.document.Document doc, String indexField, Long aLong, String defaultValue)
           
static void indexKeywordWithDefault(org.apache.lucene.document.Document doc, String indexField, String fieldValue, String defaultValue)
          Index a single keyword field, with a default if the issue field is not set shared with CommentDocument
static void indexLongAsKeyword(org.apache.lucene.document.Document doc, String indexField, Long fieldValue)
           
static void indexText(org.apache.lucene.document.Document doc, String indexField, String fieldValue)
          Index a single text field
static void indexTextForSorting(org.apache.lucene.document.Document doc, String indexField, String fieldValue)
          Index a single text field
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.index.indexers.FieldIndexer
addIndex
 

Field Detail

NO_VALUE_INDEX_VALUE

public static final String NO_VALUE_INDEX_VALUE
See Also:
Constant Field Values
Constructor Detail

BaseFieldIndexer

public BaseFieldIndexer()
Method Detail

getId

public String getId()
Specified by:
getId in interface FieldIndexer

indexKeyword

public static void indexKeyword(org.apache.lucene.document.Document doc,
                                String indexField,
                                String fieldValue)
Index a single keyword field


indexKeywordWithDefault

public static void indexKeywordWithDefault(org.apache.lucene.document.Document doc,
                                           String indexField,
                                           String fieldValue,
                                           String defaultValue)
Index a single keyword field, with a default if the issue field is not set shared with CommentDocument


indexKeywordWithDefault

public static void indexKeywordWithDefault(org.apache.lucene.document.Document doc,
                                           String indexField,
                                           Long aLong,
                                           String defaultValue)

indexText

public static void indexText(org.apache.lucene.document.Document doc,
                             String indexField,
                             String fieldValue)
Index a single text field


indexDateField

public static void indexDateField(org.apache.lucene.document.Document doc,
                                  String indexField,
                                  Timestamp date)
Index a single keyword field, with a date value


indexDependentEntities

public static void indexDependentEntities(org.ofbiz.core.entity.GenericValue issue,
                                          org.apache.lucene.document.Document doc,
                                          String associationType,
                                          String indexField)
Index the dependent entities of an issue.


indexLongAsKeyword

public static void indexLongAsKeyword(org.apache.lucene.document.Document doc,
                                      String indexField,
                                      Long fieldValue)

indexTextForSorting

public static void indexTextForSorting(org.apache.lucene.document.Document doc,
                                       String indexField,
                                       String fieldValue)
Index a single text field


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object obj)


Copyright © 2002-2007 Atlassian. All Rights Reserved.