public class QueryProperties extends Properties
Modifier and Type | Field and Description |
---|---|
static com.yahoo.processing.request.CompoundName[] |
PER_SOURCE_QUERY_PROPERTIES
Deprecated.
use Query.nativeProperties
|
private CompiledQueryProfileRegistry |
profileRegistry |
private Query |
query |
Constructor and Description |
---|
QueryProperties(Query query,
CompiledQueryProfileRegistry profileRegistry) |
Modifier and Type | Method and Description |
---|---|
Object |
get(com.yahoo.processing.request.CompoundName key,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
Query |
getParentQuery()
The query owning this property object.
|
Map<String,Object> |
listProperties(com.yahoo.processing.request.CompoundName prefix,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
void |
set(com.yahoo.processing.request.CompoundName key,
Object value,
Map<String,String> context) |
void |
setParentQuery(Query query)
Invoked during deep cloning of the parent query.
|
private void |
setRankingFeature(Query query,
String key,
Object value) |
private void |
throwIllegalParameter(String key,
String namespace) |
private Object |
toSpecifiedType(String key,
Object value,
QueryProfileType type) |
chained, clone
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
@Deprecated public static final com.yahoo.processing.request.CompoundName[] PER_SOURCE_QUERY_PROPERTIES
private Query query
private final CompiledQueryProfileRegistry profileRegistry
public QueryProperties(Query query, CompiledQueryProfileRegistry profileRegistry)
public void setParentQuery(Query query)
Properties
setParentQuery
in class Properties
public Object get(com.yahoo.processing.request.CompoundName key, 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 key, Object value, Map<String,String> context)
set
in class com.yahoo.processing.request.Properties
public Map<String,Object> listProperties(com.yahoo.processing.request.CompoundName prefix, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
listProperties
in class com.yahoo.processing.request.Properties
private Object toSpecifiedType(String key, Object value, QueryProfileType type)
public final Query getParentQuery()
Properties
getParentQuery
in class Properties
Copyright © 2018. All rights reserved.