org.elasticsearch.search.facet.range
Class InternalRangeFacet
java.lang.Object
org.elasticsearch.search.facet.range.InternalRangeFacet
- All Implemented Interfaces:
- Iterable<RangeFacet.Entry>, Streamable, ToXContent, Facet, InternalFacet, RangeFacet
public class InternalRangeFacet
- extends Object
- implements RangeFacet, InternalFacet
Fields inherited from interface org.elasticsearch.search.facet.range.RangeFacet |
TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalRangeFacet
public InternalRangeFacet(String name,
RangeFacet.Entry[] entries)
registerStreams
public static void registerStreams()
streamType
public String streamType()
- Specified by:
streamType
in interface InternalFacet
name
public String name()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
- Specified by:
name
in interface Facet
getName
public String getName()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
- Specified by:
getName
in interface Facet
type
public String type()
- Description copied from interface:
Facet
- The type of the facet.
- Specified by:
type
in interface Facet
getType
public String getType()
- Description copied from interface:
Facet
- The type of the facet.
- Specified by:
getType
in interface Facet
entries
public List<RangeFacet.Entry> entries()
- Description copied from interface:
RangeFacet
- An ordered list of range facet entries.
- Specified by:
entries
in interface RangeFacet
getEntries
public List<RangeFacet.Entry> getEntries()
- Description copied from interface:
RangeFacet
- An ordered list of range facet entries.
- Specified by:
getEntries
in interface RangeFacet
iterator
public Iterator<RangeFacet.Entry> iterator()
- Specified by:
iterator
in interface Iterable<RangeFacet.Entry>
readRangeFacet
public static InternalRangeFacet readRangeFacet(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.