public class InternalRangeFacet extends InternalFacet implements RangeFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
RangeFacet.Entry
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_PARAMS
Constructor and Description |
---|
InternalRangeFacet(String name,
RangeFacet.Entry[] entries) |
Modifier and Type | Method and Description |
---|---|
List<RangeFacet.Entry> |
getEntries()
An ordered list of range facet entries.
|
String |
getType()
The type of the facet.
|
Iterator<RangeFacet.Entry> |
iterator() |
void |
readFrom(StreamInput in) |
static InternalRangeFacet |
readRangeFacet(StreamInput in) |
Facet |
reduce(InternalFacet.ReduceContext context) |
static void |
registerStreams() |
BytesReference |
streamType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public InternalRangeFacet(String name, RangeFacet.Entry[] entries)
public static void registerStreams()
public BytesReference streamType()
streamType
in class InternalFacet
public List<RangeFacet.Entry> getEntries()
RangeFacet
getEntries
in interface RangeFacet
public Iterator<RangeFacet.Entry> iterator()
iterator
in interface Iterable<RangeFacet.Entry>
public Facet reduce(InternalFacet.ReduceContext context)
reduce
in class InternalFacet
public static InternalRangeFacet readRangeFacet(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class InternalFacet
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class InternalFacet
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.