public class QueryProfileProperties extends Properties
Modifier and Type | Field and Description |
---|---|
private CompiledQueryProfile |
profile |
private List<com.yahoo.collections.Pair<com.yahoo.processing.request.CompoundName,CompiledQueryProfile>> |
references
Query profile references which has been overridden at runtime, or null if none.
|
private Map<com.yahoo.processing.request.CompoundName,Object> |
values
Values which has been overridden at runtime, or null if none
|
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() |
private com.yahoo.collections.Pair<com.yahoo.processing.request.CompoundName,CompiledQueryProfile> |
findReference(com.yahoo.processing.request.CompoundName name) |
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
|
private boolean |
hasReference(com.yahoo.processing.request.CompoundName name) |
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) |
private boolean |
reachableTypesAreComplete(com.yahoo.processing.request.CompoundName prefix,
CompiledQueryProfile profile,
StringBuilder firstMissingName,
Map<String,String> context) |
void |
set(com.yahoo.processing.request.CompoundName name,
Object value,
Map<String,String> context)
Sets a value in this query profile
|
private boolean |
typeIsComplete(com.yahoo.processing.request.CompoundName prefix,
QueryProfileType type,
StringBuilder firstMissingName,
Map<String,String> context) |
(package private) com.yahoo.processing.request.CompoundName |
unalias(com.yahoo.processing.request.CompoundName name,
Map<String,String> context) |
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
private final CompiledQueryProfile profile
private Map<com.yahoo.processing.request.CompoundName,Object> values
private List<com.yahoo.collections.Pair<com.yahoo.processing.request.CompoundName,CompiledQueryProfile>> references
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)
private boolean reachableTypesAreComplete(com.yahoo.processing.request.CompoundName prefix, CompiledQueryProfile profile, StringBuilder firstMissingName, Map<String,String> context)
private boolean typeIsComplete(com.yahoo.processing.request.CompoundName prefix, QueryProfileType type, StringBuilder firstMissingName, Map<String,String> context)
private boolean hasReference(com.yahoo.processing.request.CompoundName name)
private com.yahoo.collections.Pair<com.yahoo.processing.request.CompoundName,CompiledQueryProfile> findReference(com.yahoo.processing.request.CompoundName name)
com.yahoo.processing.request.CompoundName unalias(com.yahoo.processing.request.CompoundName name, Map<String,String> context)
public QueryProfileProperties clone()
clone
in class Properties
Copyright © 2017. All rights reserved.