public class QueryProfileProperties extends Properties
Constructor and Description |
---|
QueryProfileProperties(CompiledQueryProfile profile)
Creates an instance from a profile, throws an exception if the given profile is null
|
Modifier and Type | Method and Description |
---|---|
QueryProfileProperties |
clone() |
Object |
get(com.yahoo.processing.request.CompoundName name,
Map<String,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
|
CompiledQueryProfile |
getQueryProfile()
Returns the query profile backing this, or null if none
|
boolean |
isComplete(StringBuilder firstMissingName,
Map<String,String> context) |
Map<String,Object> |
listProperties(com.yahoo.processing.request.CompoundName path,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
void |
set(com.yahoo.processing.request.CompoundName name,
Object value,
Map<String,String> context)
Sets a value in this query profile
|
chained, getParentQuery, setParentQuery
asBoolean, asDouble, asInteger, asLong, asString, chain, 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
public QueryProfileProperties(CompiledQueryProfile profile)
public CompiledQueryProfile getQueryProfile()
public Object get(com.yahoo.processing.request.CompoundName name, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
get
in class com.yahoo.processing.request.Properties
public void set(com.yahoo.processing.request.CompoundName name, Object value, Map<String,String> context)
set
in class com.yahoo.processing.request.Properties
IllegalArgumentException
- if this property cannot be set in the wrapped query profilepublic Map<String,Object> listProperties(com.yahoo.processing.request.CompoundName path, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
listProperties
in class com.yahoo.processing.request.Properties
public boolean isComplete(StringBuilder firstMissingName, Map<String,String> context)
public QueryProfileProperties clone()
clone
in class Properties
Copyright © 2018. All rights reserved.