Package com.yahoo.search.query.profile
Class QueryProfileProperties
- java.lang.Object
-
- com.yahoo.processing.request.Properties
-
- com.yahoo.search.query.Properties
-
- com.yahoo.search.query.profile.QueryProfileProperties
-
- All Implemented Interfaces:
java.lang.Cloneable
public class QueryProfileProperties extends Properties
Properties backed by a query profile. This has the scope of one query and is not multithread safe.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description QueryProfileProperties(CompiledQueryProfile profile)
Creates an instance from a profile, throws an exception if the given profile is null
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAll(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,java.lang.String> context)
QueryProfileProperties
clone()
java.lang.Object
get(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
Gets a value from the query profile, or from the nested profile if the value is nullCompiledQueryProfile
getQueryProfile()
Returns the query profile backing this, or null if noneboolean
isComplete(java.lang.StringBuilder firstMissingName, java.util.Map<java.lang.String,java.lang.String> context)
java.util.Map<java.lang.String,java.lang.Object>
listProperties(com.yahoo.processing.request.CompoundName path, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
void
set(com.yahoo.processing.request.CompoundName name, java.lang.Object value, java.util.Map<java.lang.String,java.lang.String> context)
Sets a value in this query profile-
Methods inherited from class com.yahoo.search.query.Properties
chained, getParentQuery, setParentQuery
-
Methods inherited from class com.yahoo.processing.request.Properties
asBoolean, asDouble, asInteger, asLong, asString, chain, 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 Detail
-
QueryProfileProperties
public QueryProfileProperties(CompiledQueryProfile profile)
Creates an instance from a profile, throws an exception if the given profile is null
-
-
Method Detail
-
getQueryProfile
public CompiledQueryProfile getQueryProfile()
Returns the query profile backing this, or null if none
-
get
public java.lang.Object get(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
Gets a value from the query profile, or from the nested profile if the value is null- Overrides:
get
in classcom.yahoo.processing.request.Properties
-
set
public void set(com.yahoo.processing.request.CompoundName name, java.lang.Object value, java.util.Map<java.lang.String,java.lang.String> context)
Sets a value in this query profile- Overrides:
set
in classcom.yahoo.processing.request.Properties
- Throws:
java.lang.IllegalArgumentException
- if this property cannot be set in the wrapped query profile
-
clearAll
public void clearAll(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,java.lang.String> context)
- Overrides:
clearAll
in classcom.yahoo.processing.request.Properties
-
listProperties
public java.util.Map<java.lang.String,java.lang.Object> listProperties(com.yahoo.processing.request.CompoundName path, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
- Overrides:
listProperties
in classcom.yahoo.processing.request.Properties
-
isComplete
public boolean isComplete(java.lang.StringBuilder firstMissingName, java.util.Map<java.lang.String,java.lang.String> context)
-
clone
public QueryProfileProperties clone()
- Overrides:
clone
in classProperties
-
-