Class RequestContextProperties
- java.lang.Object
-
- com.yahoo.processing.request.Properties
-
- com.yahoo.search.query.Properties
-
- com.yahoo.search.query.properties.RequestContextProperties
-
- All Implemented Interfaces:
Cloneable
public class RequestContextProperties extends Properties
Turns get(name) into get(name, context) using the request given at construction time and the zone info. This is used to allow the query's request to be supplied to all property requests without forcing users of the query.properties() to supply this explicitly.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description RequestContextProperties(Map<String,String> properties, ai.vespa.cloud.ZoneInfo zoneInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(com.yahoo.processing.request.CompoundName name, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
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)
-
Methods inherited from class com.yahoo.search.query.Properties
chained, clone, getParentQuery, setParentQuery
-
Methods inherited from class com.yahoo.processing.request.Properties
asBoolean, asDouble, asInteger, asLong, asString, chain, clearAll, 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
-
-
-
-
Method Detail
-
get
public Object get(com.yahoo.processing.request.CompoundName name, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
- Overrides:
get
in classcom.yahoo.processing.request.Properties
-
set
public void set(com.yahoo.processing.request.CompoundName name, Object value, Map<String,String> context)
- Overrides:
set
in classcom.yahoo.processing.request.Properties
-
-