final class AllValuesQueryProfileVisitor extends PrefixQueryProfileVisitor
Modifier and Type | Field and Description |
---|---|
private Map<String,Object> |
values |
currentPrefix
Constructor and Description |
---|
AllValuesQueryProfileVisitor(com.yahoo.processing.request.CompoundName prefix) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
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 localName,
Object value,
DimensionBinding binding,
QueryProfile owner)
Called when a value (not a query profile) is encountered.
|
private void |
putValue(String key,
Object value,
Map<String,Object> values) |
enter, getLocalKey, leave, onQueryProfile
acceptValue, visitInherited
public AllValuesQueryProfileVisitor(com.yahoo.processing.request.CompoundName prefix)
public void onValue(String localName, Object value, DimensionBinding binding, QueryProfile owner)
QueryProfileVisitor
onValue
in class QueryProfileVisitor
localName
- 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
public boolean isDone()
isDone
in class QueryProfileVisitor
Copyright © 2018. All rights reserved.