|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.facet.terms.InternalTermsFacet
public class InternalTermsFacet
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.terms.TermsFacet |
---|
TermsFacet.ComparatorType, TermsFacet.Entry |
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.Facet |
---|
Facet.Type |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
InternalTermsFacet(java.lang.String name,
java.lang.String fieldName,
TermsFacet.ComparatorType comparatorType,
int requiredSize,
java.util.Collection<TermsFacet.Entry> entries)
|
Method Summary | |
---|---|
Facet |
aggregate(java.lang.Iterable<Facet> facets)
Aggregate the data of the provided facets and returns the aggregated value. |
TermsFacet.ComparatorType |
comparatorType()
The ordering of the results. |
java.util.List<TermsFacet.Entry> |
entries()
The terms and counts. |
java.lang.String |
fieldName()
The field name the terms were extracted from. |
TermsFacet.ComparatorType |
getComparatorType()
The ordering of the results. |
java.util.List<TermsFacet.Entry> |
getEntries()
The terms and counts. |
java.lang.String |
getFieldName()
The field name the terms were extracted from. |
java.lang.String |
getName()
The "logical" name of the search facet. |
Facet.Type |
getType()
The type of the facet. |
java.util.Iterator<TermsFacet.Entry> |
iterator()
|
java.lang.String |
name()
The "logical" name of the search facet. |
void |
readFrom(StreamInput in)
|
static InternalTermsFacet |
readTermsFacet(StreamInput in)
|
void |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
Facet.Type |
type()
The type of the facet. |
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalTermsFacet(java.lang.String name, java.lang.String fieldName, TermsFacet.ComparatorType comparatorType, int requiredSize, java.util.Collection<TermsFacet.Entry> entries)
Method Detail |
---|
public java.lang.String name()
Facet
name
in interface Facet
public java.lang.String getName()
Facet
getName
in interface Facet
public java.lang.String fieldName()
TermsFacet
fieldName
in interface TermsFacet
public java.lang.String getFieldName()
TermsFacet
getFieldName
in interface TermsFacet
public Facet.Type type()
Facet
type
in interface Facet
public Facet.Type getType()
Facet
getType
in interface Facet
public TermsFacet.ComparatorType comparatorType()
TermsFacet
comparatorType
in interface TermsFacet
public TermsFacet.ComparatorType getComparatorType()
TermsFacet
getComparatorType
in interface TermsFacet
public java.util.List<TermsFacet.Entry> entries()
TermsFacet
entries
in interface TermsFacet
public java.util.List<TermsFacet.Entry> getEntries()
TermsFacet
getEntries
in interface TermsFacet
public java.util.Iterator<TermsFacet.Entry> iterator()
iterator
in interface java.lang.Iterable<TermsFacet.Entry>
public Facet aggregate(java.lang.Iterable<Facet> facets)
InternalFacet
aggregate
in interface InternalFacet
public void toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static InternalTermsFacet readTermsFacet(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |