Package org.apache.solr.util
Enum Class PivotListEntry
- All Implemented Interfaces:
Serializable,Comparable<PivotListEntry>,Constable
Enum for modeling the elements of a (nested) pivot entry as expressed in a NamedList
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<T> Textract(org.apache.solr.common.util.NamedList<T> pivotList) Given aNamedListrepresenting a Pivot Value, extracts the Object which corresponds to thisPivotListEntry, or returns null if not found.static PivotListEntryCase-insensitive lookup of PivotListEntry by namegetName()Name of this entry when used in responsestatic PivotListEntryReturns the enum constant of this class with the specified name.static PivotListEntry[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIELD
-
VALUE
-
COUNT
-
PIVOT
-
STATS
-
QUERIES
-
RANGES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Case-insensitive lookup of PivotListEntry by name- See Also:
-
getName
Name of this entry when used in response- See Also:
-
extract
public <T> T extract(org.apache.solr.common.util.NamedList<T> pivotList) Given aNamedListrepresenting a Pivot Value, extracts the Object which corresponds to thisPivotListEntry, or returns null if not found.
-