public interface

IndexInfoResolver

com.atlassian.jira.jql.resolver.IndexInfoResolver<T>
Known Indirect Subclasses

Class Overview

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.

Summary

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

Public Methods

public 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.

public List<String> getIndexedValues (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.

public List<String> getIndexedValues (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.