public abstract class AbstractEqualityQueryFactory<T> extends AbstractOperatorQueryFactory<T> implements OperatorSpecificQueryFactory
Constructor and Description |
---|
AbstractEqualityQueryFactory(IndexInfoResolver<T> indexInfoResolver) |
Modifier and Type | Method and Description |
---|---|
QueryFactoryResult |
createQueryForMultipleValues(String fieldName,
Operator operator,
List<QueryLiteral> rawValues)
Generates the Query for a list of operand ids.
|
QueryFactoryResult |
createQueryForSingleValue(String fieldName,
Operator operator,
List<QueryLiteral> rawValues)
Generates the Query for a single operand id.
|
boolean |
handlesOperator(Operator operator) |
checkQueryForEmpty, getTermQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createQueryForEmptyOperand
public AbstractEqualityQueryFactory(IndexInfoResolver<T> indexInfoResolver)
public QueryFactoryResult createQueryForSingleValue(String fieldName, Operator operator, List<QueryLiteral> rawValues)
OperatorSpecificQueryFactory
createQueryForSingleValue
in interface OperatorSpecificQueryFactory
fieldName
- the index field name the query should be generated for.operator
- operator which is handled by this implementation.rawValues
- the raw values provided to the operand that need to be converted to index values.public QueryFactoryResult createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> rawValues)
OperatorSpecificQueryFactory
createQueryForMultipleValues
in interface OperatorSpecificQueryFactory
fieldName
- the index field name the query should be generated for.operator
- operator which is handled by this implementation.rawValues
- the raw values provided to the operand that need to be converted to index values.public boolean handlesOperator(Operator operator)
handlesOperator
in interface OperatorSpecificQueryFactory
operator
- the operator in question.Copyright © 2002-2019 Atlassian. All Rights Reserved.