public class QueryProfileVariant extends Object implements Cloneable, Comparable<QueryProfileVariant>
Constructor and Description |
---|
QueryProfileVariant(DimensionValues dimensionValues,
QueryProfile owner) |
Modifier and Type | Method and Description |
---|---|
void |
accept(boolean allowContent,
QueryProfileType type,
com.yahoo.search.query.profile.QueryProfileVisitor visitor,
DimensionBinding dimensionBinding)
Accepts a visitor to the values of this
|
QueryProfileVariant |
clone() |
int |
compareTo(QueryProfileVariant other)
Implements the sort order of this which is based on specificity
where dimensions to the left are more significant.
|
void |
freeze() |
DimensionValues |
getDimensionValues() |
void |
inherit(QueryProfile profile) |
List<QueryProfile> |
inherited()
Returns the live reference to the inherited profiles of this.
|
boolean |
matches(DimensionValues givenDimensionValues) |
void |
set(String key,
Object newValue) |
String |
toString() |
Map<String,Object> |
values()
Returns the live reference to the values of this.
|
public QueryProfileVariant(DimensionValues dimensionValues, QueryProfile owner)
public DimensionValues getDimensionValues()
public Map<String,Object> values()
public List<QueryProfile> inherited()
public void inherit(QueryProfile profile)
public int compareTo(QueryProfileVariant other)
Note: This ordering is not consistent with equals - it returns 0 when the same dimensions are set, regardless of what they are set to.
compareTo
in interface Comparable<QueryProfileVariant>
public boolean matches(DimensionValues givenDimensionValues)
public void accept(boolean allowContent, QueryProfileType type, com.yahoo.search.query.profile.QueryProfileVisitor visitor, DimensionBinding dimensionBinding)
public void freeze()
public QueryProfileVariant clone()
Copyright © 2018. All rights reserved.