V
- parameter typepublic final class ElasticsearchFacet<V> extends java.lang.Object implements QueryFacet<V>, java.lang.Comparable<ElasticsearchFacet<V>>
Elasticsearch facet.
Modifier and Type | Class and Description |
---|---|
static class |
ElasticsearchFacet.Type
Types of Elasticsearch facets.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FACET_SIZE |
Constructor and Description |
---|
ElasticsearchFacet(ElasticsearchFacet.Type type,
java.lang.String name,
V value) |
ElasticsearchFacet(ElasticsearchFacet.Type type,
java.lang.String name,
V value,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ElasticsearchFacet<V> o) |
java.lang.String |
getFilterName()
Get the filter name which must be used for filtering facet entries.
|
java.lang.String |
getName() |
int |
getSize()
The size of the facet.
|
ElasticsearchFacet.Type |
getType() |
V |
getValue() |
void |
setName(java.lang.String name) |
void |
setType(ElasticsearchFacet.Type type) |
void |
setValue(V value) |
java.lang.String |
toString() |
public static final int DEFAULT_FACET_SIZE
public ElasticsearchFacet(ElasticsearchFacet.Type type, java.lang.String name, V value)
public ElasticsearchFacet(ElasticsearchFacet.Type type, java.lang.String name, V value, int size)
public void setName(java.lang.String name)
setName
in interface QueryOption<V>
public java.lang.String getName()
getName
in interface QueryOption<V>
public void setType(ElasticsearchFacet.Type type)
public ElasticsearchFacet.Type getType()
public void setValue(V value)
setValue
in interface QueryOption<V>
public V getValue()
getValue
in interface QueryOption<V>
public int getSize()
QueryFacet
The size of the facet.
getSize
in interface QueryFacet<V>
public java.lang.String getFilterName()
QueryFacet
Get the filter name which must be used for filtering facet entries.
getFilterName
in interface QueryFacet<V>
public int compareTo(ElasticsearchFacet<V> o)
compareTo
in interface java.lang.Comparable<ElasticsearchFacet<V>>
public java.lang.String toString()
toString
in class java.lang.Object