Package com.yahoo.search.predicate
Class PredicateQuery
java.lang.Object
com.yahoo.search.predicate.PredicateQuery
Represents a query in the form of a set of boolean variables that are considered true.
- Author:
- Magnar Nedland, bjorncs
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(String key, String value) Adds a feature to the queryvoid
addFeature
(String key, String value, long subqueryBitMap) Adds a feature to the query, e.g.void
addRangeFeature
(String key, long value) void
addRangeFeature
(String key, long value, long subqueryBitMap) Adds a range feature to the query, e.g.Returns a list of featuresReturns a list of range features
-
Constructor Details
-
PredicateQuery
public PredicateQuery()
-
-
Method Details
-
addFeature
Adds a feature to the query- Parameters:
key
- a feature keyvalue
- a feature value
-
addFeature
Adds a feature to the query, e.g. gender = male.- Parameters:
key
- Feature keyvalue
- Feature valuesubqueryBitMap
- The subquery bitmap for which this term is true
-
addRangeFeature
-
addRangeFeature
Adds a range feature to the query, e.g. age = 25.- Parameters:
key
- a feature keyvalue
- a feature valuesubqueryBitMap
- the subquery bitmap for which this term is true
-
getFeatures
Returns a list of features -
getRangeFeatures
Returns a list of range features
-