|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.facet.geodistance.InternalGeoDistanceFacet
public class InternalGeoDistanceFacet
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.geodistance.GeoDistanceFacet |
---|
GeoDistanceFacet.Entry |
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 |
Constructor Summary | |
---|---|
InternalGeoDistanceFacet(java.lang.String name,
java.lang.String fieldName,
java.lang.String valueFieldName,
DistanceUnit unit,
GeoDistanceFacet.Entry[] entries)
|
Method Summary | |
---|---|
Facet |
aggregate(java.lang.Iterable<Facet> facets)
Aggregate the data of the provided facets and returns the aggregated value. |
java.util.List<GeoDistanceFacet.Entry> |
entries()
An ordered list of geo distance facet entries. |
java.lang.String |
fieldName()
|
java.util.List<GeoDistanceFacet.Entry> |
getEntries()
An ordered list of geo distance facet entries. |
java.lang.String |
getFieldName()
|
java.lang.String |
getName()
The "logical" name of the search facet. |
Facet.Type |
getType()
The type of the facet. |
DistanceUnit |
getUnit()
|
java.lang.String |
getValueFieldName()
|
java.util.Iterator<GeoDistanceFacet.Entry> |
iterator()
|
java.lang.String |
name()
The "logical" name of the search facet. |
void |
readFrom(StreamInput in)
|
static InternalGeoDistanceFacet |
readGeoDistanceFacet(StreamInput in)
|
void |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
Facet.Type |
type()
The type of the facet. |
DistanceUnit |
unit()
|
java.lang.String |
valueFieldName()
|
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 InternalGeoDistanceFacet(java.lang.String name, java.lang.String fieldName, java.lang.String valueFieldName, DistanceUnit unit, GeoDistanceFacet.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 Facet.Type type()
Facet
type
in interface Facet
public Facet.Type getType()
Facet
getType
in interface Facet
public java.lang.String fieldName()
fieldName
in interface GeoDistanceFacet
public java.lang.String getFieldName()
getFieldName
in interface GeoDistanceFacet
public java.lang.String valueFieldName()
valueFieldName
in interface GeoDistanceFacet
public java.lang.String getValueFieldName()
getValueFieldName
in interface GeoDistanceFacet
public DistanceUnit unit()
unit
in interface GeoDistanceFacet
public DistanceUnit getUnit()
getUnit
in interface GeoDistanceFacet
public java.util.List<GeoDistanceFacet.Entry> entries()
GeoDistanceFacet
entries
in interface GeoDistanceFacet
public java.util.List<GeoDistanceFacet.Entry> getEntries()
GeoDistanceFacet
getEntries
in interface GeoDistanceFacet
public java.util.Iterator<GeoDistanceFacet.Entry> iterator()
iterator
in interface java.lang.Iterable<GeoDistanceFacet.Entry>
public Facet aggregate(java.lang.Iterable<Facet> facets)
InternalFacet
aggregate
in interface InternalFacet
public static InternalGeoDistanceFacet readGeoDistanceFacet(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
public void toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |