|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Facet.Type> org.elasticsearch.search.facet.Facet.Type
public static enum Facet.Type
The type of the facet.
Enum Constant Summary | |
---|---|
FILTER
Filter facet type, matching FilterFacet . |
|
GEO_DISTANCE
Geo Distance facet type, matching GeoDistanceFacet . |
|
HISTOGRAM
Histogram facet type, matching HistogramFacet . |
|
QUERY
Query facet type, matching QueryFacet . |
|
RANGE
Geo Distance facet type, matching RangeFacet . |
|
STATISTICAL
Statistical facet type, matching StatisticalFacet . |
|
TERMS
Terms facet type, matching TermsFacet . |
Method Summary | |
---|---|
static Facet.Type |
fromId(int id)
|
java.lang.Class<? extends Facet> |
getType()
The facet class type. |
int |
id()
|
java.lang.Class<? extends Facet> |
type()
The facet class type. |
static Facet.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Facet.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Facet.Type TERMS
TermsFacet
.
public static final Facet.Type QUERY
QueryFacet
.
public static final Facet.Type STATISTICAL
StatisticalFacet
.
public static final Facet.Type HISTOGRAM
HistogramFacet
.
public static final Facet.Type GEO_DISTANCE
GeoDistanceFacet
.
public static final Facet.Type RANGE
RangeFacet
.
public static final Facet.Type FILTER
FilterFacet
.
Method Detail |
---|
public static Facet.Type[] values()
for (Facet.Type c : Facet.Type.values()) System.out.println(c);
public static Facet.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int id()
public java.lang.Class<? extends Facet> type()
public java.lang.Class<? extends Facet> getType()
public static Facet.Type fromId(int id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |