final class AllTypesQueryProfileVisitor extends PrefixQueryProfileVisitor
Modifier and Type | Field and Description |
---|---|
private Map<com.yahoo.processing.request.CompoundName,QueryProfileType> |
types
A map of query profile types
|
currentPrefix
Constructor and Description |
---|
AllTypesQueryProfileVisitor(com.yahoo.processing.request.CompoundName prefix) |
Modifier and Type | Method and Description |
---|---|
private void |
addReachableTypes(com.yahoo.processing.request.CompoundName name,
QueryProfileType type) |
Map<com.yahoo.processing.request.CompoundName,QueryProfileType> |
getResult()
Returns the values resulting from this visiting
|
boolean |
isDone()
Returns false - we are not done until we have seen all
|
void |
onQueryProfileInsidePrefix(QueryProfile profile,
DimensionBinding binding,
QueryProfile owner) |
void |
onValue(String name,
Object value,
DimensionBinding binding,
QueryProfile owner)
Called when a value (not a query profile) is encountered.
|
enter, getLocalKey, leave, onQueryProfile
acceptValue, visitInherited
private Map<com.yahoo.processing.request.CompoundName,QueryProfileType> types
public AllTypesQueryProfileVisitor(com.yahoo.processing.request.CompoundName prefix)
public void onValue(String name, Object value, DimensionBinding binding, QueryProfile owner)
QueryProfileVisitor
onValue
in class QueryProfileVisitor
name
- the local name of this value (the full name, if needed, must be reconstructed
by the information given by the history of QueryProfileVisitor.enter(String)
and QueryProfileVisitor.leave(String)
callsvalue
- the valuebinding
- the binding this holds forowner
- the query profile having this value, or null only when profile is the root profilepublic void onQueryProfileInsidePrefix(QueryProfile profile, DimensionBinding binding, QueryProfile owner)
onQueryProfileInsidePrefix
in class PrefixQueryProfileVisitor
private void addReachableTypes(com.yahoo.processing.request.CompoundName name, QueryProfileType type)
public Map<com.yahoo.processing.request.CompoundName,QueryProfileType> getResult()
public boolean isDone()
isDone
in class QueryProfileVisitor
Copyright © 2018. All rights reserved.