com.atlassian.jira.jql.resolver
Interface IndexInfoResolver<T>

All Known Implementing Classes:
ComponentIndexInfoResolver, IdentityIndexInfoResolver, IssueConstantInfoResolver, LabelIndexInfoResolver, ProjectIndexInfoResolver, ResolutionIndexInfoResolver, UserIndexInfoResolver, VersionIndexInfoResolver, WorkRatioIndexInfoResolver

public interface IndexInfoResolver<T>

Turns a searchable value (operand) (such as what may be typed into the right side of a clause) into an indexed value. Operands may be represented by name or some other format that doesn't exactly match the indexed value and implementations of this perform the transformation. In some cases (notably numeric types) there would be little or no transformation of the original value held by the operand.

Multiple values are returned because lookups cannot be guaranteed to be 1:1 as in name to id lookups for certain issue fields.

Since:
4.0

Method Summary
 java.lang.String getIndexedValue(T indexedObject)
          Gets an indexed value from a domain object.
 java.util.List<java.lang.String> getIndexedValues(java.lang.Long rawValue)
          Provides the values in the index for the single value operand with the given Long value.
 java.util.List<java.lang.String> getIndexedValues(java.lang.String rawValue)
          Provides the values in the index for the operand with the given String value.
 

Method Detail

getIndexedValues

java.util.List<java.lang.String> getIndexedValues(java.lang.String rawValue)
Provides the values in the index for the operand with the given String value.

Parameters:
rawValue - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValues

java.util.List<java.lang.String> getIndexedValues(java.lang.Long rawValue)
Provides the values in the index for the single value operand with the given Long value.

Parameters:
rawValue - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValue

java.lang.String getIndexedValue(T indexedObject)
Gets an indexed value from a domain object.

Parameters:
indexedObject - the domain object. Does not accept null.
Returns:
the indexed value.


Copyright © 2002-2010 Atlassian. All Rights Reserved.