public class QueryProperties extends Properties
Modifier and Type | Field and Description |
---|---|
private static String |
MODEL_PREFIX |
static com.yahoo.processing.request.CompoundName[] |
PER_SOURCE_QUERY_PROPERTIES |
private static String |
PRESENTATION_PREFIX |
private CompiledQueryProfileRegistry |
profileRegistry |
private Query |
query |
private static String |
RANKING_PREFIX |
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.
|
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, listProperties, set, set, set
private static final String MODEL_PREFIX
private static final String RANKING_PREFIX
private static final String PRESENTATION_PREFIX
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
private Object toSpecifiedType(String key, Object value, QueryProfileType type)
public final Query getParentQuery()
Properties
getParentQuery
in class Properties
Copyright © 2017. All rights reserved.