public static class QueryProfileVariants.FieldValue extends Object implements Comparable<QueryProfileVariants.FieldValue>, Cloneable
Modifier and Type | Field and Description |
---|---|
private DimensionValues |
dimensionValues |
private Object |
value |
Constructor and Description |
---|
FieldValue(DimensionValues dimensionValues,
Object value) |
Modifier and Type | Method and Description |
---|---|
QueryProfileVariants.FieldValue |
clone() |
QueryProfileVariants.FieldValue |
clone(String fieldName,
List<QueryProfileVariant> clonedVariants)
Clone by filling in the value from the given variants
|
int |
compareTo(QueryProfileVariants.FieldValue other)
Implements the sort order of this which is based on specificity
where dimensions to the left are more significant.
|
DimensionValues |
getDimensionValues()
Returns the dimension values for which this value should be used.
|
Object |
getValue()
Returns the value to use for this set of dimension values
|
private Object |
lookupInVariants(String fieldName,
DimensionValues dimensionValues,
List<QueryProfileVariant> variants) |
boolean |
matches(DimensionValues givenDimensionValues) |
void |
setValue(Object value)
Sets the value to use for this set of dimension values
|
private DimensionValues dimensionValues
private Object value
public FieldValue(DimensionValues dimensionValues, Object value)
public DimensionValues getDimensionValues()
public Object getValue()
public void setValue(Object value)
public boolean matches(DimensionValues givenDimensionValues)
public int compareTo(QueryProfileVariants.FieldValue 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<QueryProfileVariants.FieldValue>
public QueryProfileVariants.FieldValue clone(String fieldName, List<QueryProfileVariant> clonedVariants)
public QueryProfileVariants.FieldValue clone()
private Object lookupInVariants(String fieldName, DimensionValues dimensionValues, List<QueryProfileVariant> variants)
Copyright © 2017. All rights reserved.