org.elasticsearch.search.facet.internal
Interface InternalFacet

All Superinterfaces:
Facet, Streamable, ToXContent
All Known Implementing Classes:
InternalFilterFacet, InternalGeoDistanceFacet, InternalHistogramFacet, InternalQueryFacet, InternalRangeFacet, InternalStatisticalFacet, InternalTermsFacet

public interface InternalFacet
extends Facet, Streamable, ToXContent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.Facet
Facet.Type
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Method Summary
 Facet aggregate(java.lang.Iterable<Facet> facets)
          Aggregate the data of the provided facets and returns the aggregated value.
 
Methods inherited from interface org.elasticsearch.search.facet.Facet
getName, getType, name, type
 
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable
readFrom, writeTo
 
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
 

Method Detail

aggregate

Facet aggregate(java.lang.Iterable<Facet> facets)
Aggregate the data of the provided facets and returns the aggregated value. Note, this method might should handle cases of facets provided with different names, and should excllude them.