public class CompiledQueryProfile extends com.yahoo.component.AbstractComponent implements Cloneable
Constructor and Description |
---|
CompiledQueryProfile(com.yahoo.component.ComponentId id,
QueryProfileType type,
DimensionalMap<com.yahoo.processing.request.CompoundName,Object> entries,
DimensionalMap<com.yahoo.processing.request.CompoundName,QueryProfileType> types,
DimensionalMap<com.yahoo.processing.request.CompoundName,Object> references,
DimensionalMap<com.yahoo.processing.request.CompoundName,Object> unoverridables,
CompiledQueryProfileRegistry registry)
Creates a new query profile from an id.
|
Modifier and Type | Method and Description |
---|---|
CompiledQueryProfile |
clone() |
Object |
get(com.yahoo.processing.request.CompoundName name,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
Object |
get(String name) |
Object |
get(String name,
Map<String,String> context) |
Object |
get(String name,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
DimensionalMap<com.yahoo.processing.request.CompoundName,Object> |
getReferences()
Returns the references reachable from this, or an empty map (never null) if none
|
CompiledQueryProfileRegistry |
getRegistry()
Returns the registry this belongs to, or null if none (in which case runtime profile reference assignment won't work)
|
QueryProfileType |
getType()
Returns the type of this or null if it has no type
|
QueryProfileType |
getType(com.yahoo.processing.request.CompoundName name,
Map<String,String> context)
Returns the type of a given prefix reachable from this profile, or null if none
|
DimensionalMap<com.yahoo.processing.request.CompoundName,QueryProfileType> |
getTypes()
Returns the types reachable from this, or an empty map (never null) if none
|
boolean |
isOverridable(com.yahoo.processing.request.CompoundName name,
Map<String,String> context)
Returns whether or not the given field name can be overridden at runtime.
|
Map<String,Object> |
listValues(com.yahoo.processing.request.CompoundName prefix)
Return all objects that start with the given prefix path using no context.
|
Map<String,Object> |
listValues(com.yahoo.processing.request.CompoundName prefix,
Map<String,String> context)
Return all objects that start with the given prefix path.
|
Map<String,Object> |
listValues(com.yahoo.processing.request.CompoundName prefix,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution)
Adds all objects that start with the given path prefix to the given value map.
|
Map<String,Object> |
listValues(String prefix) |
Map<String,Object> |
listValues(String prefix,
Map<String,String> context)
Return all objects that start with the given prefix path.
|
String |
toString() |
public CompiledQueryProfile(com.yahoo.component.ComponentId id, QueryProfileType type, DimensionalMap<com.yahoo.processing.request.CompoundName,Object> entries, DimensionalMap<com.yahoo.processing.request.CompoundName,QueryProfileType> types, DimensionalMap<com.yahoo.processing.request.CompoundName,Object> references, DimensionalMap<com.yahoo.processing.request.CompoundName,Object> unoverridables, CompiledQueryProfileRegistry registry)
public CompiledQueryProfileRegistry getRegistry()
public QueryProfileType getType()
public final boolean isOverridable(com.yahoo.processing.request.CompoundName name, Map<String,String> context)
name
- the name of the field to checkcontext
- the context in which to check, or null if nonepublic final QueryProfileType getType(com.yahoo.processing.request.CompoundName name, Map<String,String> context)
public DimensionalMap<com.yahoo.processing.request.CompoundName,QueryProfileType> getTypes()
public DimensionalMap<com.yahoo.processing.request.CompoundName,Object> getReferences()
public final Map<String,Object> listValues(com.yahoo.processing.request.CompoundName prefix)
For example, if {a.d => "a.d-value" ,a.e => "a.e-value", b.d => "b.d-value", then calling listValues("a") will return {"d" => "a.d-value","e" => "a.e-value"}
public final Map<String,Object> listValues(String prefix, Map<String,String> context)
For example, if {a.d => "a.d-value" ,a.e => "a.e-value", b.d => "b.d-value", then calling listValues("a") will return {"d" => "a.d-value","e" => "a.e-value"}
public final Map<String,Object> listValues(com.yahoo.processing.request.CompoundName prefix, Map<String,String> context)
For example, if {a.d => "a.d-value" ,a.e => "a.e-value", b.d => "b.d-value", then calling listValues("a") will return {"d" => "a.d-value","e" => "a.e-value"}
public Map<String,Object> listValues(com.yahoo.processing.request.CompoundName prefix, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
For example, if {a.d => "a.d-value" ,a.e => "a.e-value", b.d => "b.d-value", then calling listValues("a") will return {"d" => "a.d-value","e" => "a.e-value"}
public final Object get(String name, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
public final Object get(com.yahoo.processing.request.CompoundName name, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
public CompiledQueryProfile clone()
clone
in class com.yahoo.component.AbstractComponent
public String toString()
toString
in class com.yahoo.component.AbstractComponent
Copyright © 2018. All rights reserved.