Class QueryProperties
java.lang.Object
com.yahoo.processing.request.Properties
com.yahoo.search.query.Properties
com.yahoo.search.query.properties.QueryProperties
- All Implemented Interfaces:
Cloneable
Maps between the query model and text properties.
This can be done simpler by using reflection but the performance penalty was not worth it,
especially since we should be conservative in adding things to the query model.
- Author:
- bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionQueryProperties(Query query, CompiledQueryProfileRegistry profileRegistry, Map<String, com.yahoo.language.process.Embedder> embedders) -
Method Summary
Modifier and TypeMethodDescriptionget(com.yahoo.processing.request.CompoundName key, Map<String, String> context, com.yahoo.processing.request.Properties substitution) final QueryReturns the query owning this property object.listProperties(com.yahoo.processing.request.CompoundName prefix, Map<String, String> context, com.yahoo.processing.request.Properties substitution) voidvoidsetParentQuery(Query query) Invoked during deep cloning of the parent query.Methods inherited from class com.yahoo.search.query.Properties
chained, clone, requireSettableMethods inherited from class com.yahoo.processing.request.Properties
asBoolean, asDouble, asInteger, asLong, asString, chain, clearAll, clearAll, clearAll, clearAll, clone, cloneMap, get, get, get, get, get, get, get, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getInstance, getInteger, getInteger, getInteger, getInteger, getLong, getLong, getLong, getLong, getString, getString, getString, getString, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, set, set, set
-
Constructor Details
-
QueryProperties
public QueryProperties(Query query, CompiledQueryProfileRegistry profileRegistry, Map<String, com.yahoo.language.process.Embedder> embedders)
-
-
Method Details
-
setParentQuery
Description copied from class:PropertiesInvoked during deep cloning of the parent query.- Overrides:
setParentQueryin classProperties
-
get
public Object get(com.yahoo.processing.request.CompoundName key, Map<String, String> context, com.yahoo.processing.request.Properties substitution) - Overrides:
getin classcom.yahoo.processing.request.Properties
-
set
public void set(com.yahoo.processing.request.CompoundName key, Object value, Map<String, String> context) - Overrides:
setin classcom.yahoo.processing.request.Properties
-
listProperties
public Map<String,Object> listProperties(com.yahoo.processing.request.CompoundName prefix, Map<String, String> context, com.yahoo.processing.request.Properties substitution) - Overrides:
listPropertiesin classcom.yahoo.processing.request.Properties
-
getParentQuery
Description copied from class:PropertiesReturns the query owning this property object. Only guaranteed to work if this instance is accessible as query.properties()- Overrides:
getParentQueryin classProperties
-