public static class QueryProfileVariants.FieldValues extends Object implements com.yahoo.component.provider.Freezable, Cloneable
Modifier and Type | Field and Description |
---|---|
private boolean |
frozen |
private List<QueryProfileVariants.FieldValue> |
resolutionList |
Constructor and Description |
---|
FieldValues() |
Modifier and Type | Method and Description |
---|---|
List<QueryProfileVariants.FieldValue> |
asList()
Returns the field values (values for various dimensions) for this field as a read-only list (never null)
|
QueryProfileVariants.FieldValues |
clone() |
QueryProfileVariants.FieldValues |
clone(String fieldName,
List<QueryProfileVariant> clonedVariants)
Clone by filling in values from the given variants
|
protected void |
ensureNotFrozen()
Throws an IllegalStateException if this is frozen
|
void |
freeze() |
Object |
getExact(DimensionValues dimensionValues)
Returns the value having exactly the given dimensions, or null if none
|
private QueryProfileVariants.FieldValue |
getExactFieldValue(DimensionValues dimensionValues)
Returns the field value having exactly the given dimensions, or null if none
|
QueryProfileVariants.FieldValue |
getIfExists(int index) |
boolean |
isFrozen() |
void |
put(DimensionValues dimensionValues,
Object value) |
int |
size()
Same as asList().size()
|
void |
sort() |
private List<QueryProfileVariants.FieldValue> resolutionList
private boolean frozen
public void freeze()
freeze
in interface com.yahoo.component.provider.Freezable
public boolean isFrozen()
isFrozen
in interface com.yahoo.component.provider.Freezable
public void put(DimensionValues dimensionValues, Object value)
public Object getExact(DimensionValues dimensionValues)
private QueryProfileVariants.FieldValue getExactFieldValue(DimensionValues dimensionValues)
public List<QueryProfileVariants.FieldValue> asList()
public QueryProfileVariants.FieldValue getIfExists(int index)
public void sort()
public int size()
protected void ensureNotFrozen()
public QueryProfileVariants.FieldValues clone(String fieldName, List<QueryProfileVariant> clonedVariants)
public QueryProfileVariants.FieldValues clone()
Copyright © 2018. All rights reserved.