|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.facets.histogram.InternalHistogramFacet
public class InternalHistogramFacet
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.search.facets.histogram.HistogramFacet |
---|
HistogramFacet.ComparatorType, HistogramFacet.Entry |
Nested classes/interfaces inherited from interface org.elasticsearch.search.facets.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 |
Constructor Summary | |
---|---|
InternalHistogramFacet(java.lang.String name,
java.lang.String keyFieldName,
java.lang.String valueFieldName,
long interval,
HistogramFacet.ComparatorType comparatorType,
org.elasticsearch.common.trove.TLongLongHashMap counts,
org.elasticsearch.common.trove.TLongDoubleHashMap totals)
|
Method Summary | |
---|---|
Facet |
aggregate(java.lang.Iterable<Facet> facets)
Aggregate the data of the provided facets and returns the aggregated value. |
java.util.List<HistogramFacet.Entry> |
entries()
An ordered list of histogram facet entries. |
java.util.List<HistogramFacet.Entry> |
getEntries()
An ordered list of histogram facet entries. |
java.lang.String |
getKeyFieldName()
The key field name used with this facet. |
java.lang.String |
getName()
The "logical" name of the search facet. |
Facet.Type |
getType()
The type of the facet. |
java.lang.String |
getValueFieldName()
The value field name used with this facet. |
java.util.Iterator<HistogramFacet.Entry> |
iterator()
|
java.lang.String |
keyFieldName()
The key field name used with this facet. |
java.lang.String |
name()
The "logical" name of the search facet. |
void |
readFrom(StreamInput in)
|
static InternalHistogramFacet |
readHistogramFacet(StreamInput in)
|
void |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
Facet.Type |
type()
The type of the facet. |
java.lang.String |
valueFieldName()
The value field name used with this 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 InternalHistogramFacet(java.lang.String name, java.lang.String keyFieldName, java.lang.String valueFieldName, long interval, HistogramFacet.ComparatorType comparatorType, org.elasticsearch.common.trove.TLongLongHashMap counts, org.elasticsearch.common.trove.TLongDoubleHashMap totals)
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 keyFieldName()
HistogramFacet
keyFieldName
in interface HistogramFacet
public java.lang.String getKeyFieldName()
HistogramFacet
getKeyFieldName
in interface HistogramFacet
public java.lang.String valueFieldName()
HistogramFacet
valueFieldName
in interface HistogramFacet
public java.lang.String getValueFieldName()
HistogramFacet
getValueFieldName
in interface HistogramFacet
public Facet.Type type()
Facet
type
in interface Facet
public Facet.Type getType()
Facet
getType
in interface Facet
public java.util.List<HistogramFacet.Entry> entries()
HistogramFacet
entries
in interface HistogramFacet
public java.util.List<HistogramFacet.Entry> getEntries()
HistogramFacet
getEntries
in interface HistogramFacet
public java.util.Iterator<HistogramFacet.Entry> iterator()
iterator
in interface java.lang.Iterable<HistogramFacet.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 InternalHistogramFacet readHistogramFacet(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 |