Package com.yahoo.search.query.profile
Class QueryProfileVariants.FieldValues
java.lang.Object
com.yahoo.search.query.profile.QueryProfileVariants.FieldValues
- All Implemented Interfaces:
com.yahoo.component.provider.Freezable
,Cloneable
- Enclosing class:
- QueryProfileVariants
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasList()
Returns the field values (values for various dimensions) for this field as a read-only list (never null)clone()
clone
(String fieldName, List<QueryProfileVariant> clonedVariants) Clone by filling in values from the given variantsprotected void
Throws an IllegalStateException if this is frozenvoid
freeze()
getExact
(DimensionValues dimensionValues) Returns the value having exactly the given dimensions, or null if nonegetIfExists
(int index) boolean
isFrozen()
void
put
(DimensionValues dimensionValues, Object value) int
size()
Same as asList().size()void
sort()
-
Constructor Details
-
FieldValues
public FieldValues()
-
-
Method Details
-
freeze
public void freeze()- Specified by:
freeze
in interfacecom.yahoo.component.provider.Freezable
-
isFrozen
public boolean isFrozen()- Specified by:
isFrozen
in interfacecom.yahoo.component.provider.Freezable
-
put
-
getExact
Returns the value having exactly the given dimensions, or null if none -
asList
Returns the field values (values for various dimensions) for this field as a read-only list (never null) -
getIfExists
-
sort
public void sort() -
size
public int size()Same as asList().size() -
ensureNotFrozen
protected void ensureNotFrozen()Throws an IllegalStateException if this is frozen -
clone
public QueryProfileVariants.FieldValues clone(String fieldName, List<QueryProfileVariant> clonedVariants) Clone by filling in values from the given variants -
clone
-