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
,java.lang.Cloneable
- Enclosing class:
- QueryProfileVariants
public static class QueryProfileVariants.FieldValues extends java.lang.Object implements com.yahoo.component.provider.Freezable, java.lang.Cloneable
-
-
Constructor Summary
Constructors Constructor Description FieldValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.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(java.lang.String fieldName, java.util.List<QueryProfileVariant> clonedVariants)
Clone by filling in values from the given variantsprotected void
ensureNotFrozen()
Throws an IllegalStateException if this is frozenvoid
freeze()
java.lang.Object
getExact(DimensionValues dimensionValues)
Returns the value having exactly the given dimensions, or null if noneQueryProfileVariants.FieldValue
getIfExists(int index)
boolean
isFrozen()
void
put(DimensionValues dimensionValues, java.lang.Object value)
int
size()
Same as asList().size()void
sort()
-
-
-
Method Detail
-
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
public void put(DimensionValues dimensionValues, java.lang.Object value)
-
getExact
public java.lang.Object getExact(DimensionValues dimensionValues)
Returns the value having exactly the given dimensions, or null if none
-
asList
public java.util.List<QueryProfileVariants.FieldValue> asList()
Returns the field values (values for various dimensions) for this field as a read-only list (never null)
-
getIfExists
public QueryProfileVariants.FieldValue getIfExists(int index)
-
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(java.lang.String fieldName, java.util.List<QueryProfileVariant> clonedVariants)
Clone by filling in values from the given variants
-
clone
public QueryProfileVariants.FieldValues clone()
- Overrides:
clone
in classjava.lang.Object
-
-