public class InternalRangeFacet extends InternalFacet implements RangeFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.StreamsRangeFacet.EntryToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPEEMPTY_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) |
getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic InternalRangeFacet(String name, RangeFacet.Entry[] entries)
public static void registerStreams()
public BytesReference streamType()
streamType in class InternalFacetpublic List<RangeFacet.Entry> getEntries()
RangeFacetgetEntries in interface RangeFacetpublic Iterator<RangeFacet.Entry> iterator()
iterator in interface Iterable<RangeFacet.Entry>public Facet reduce(InternalFacet.ReduceContext context)
reduce in class InternalFacetpublic static InternalRangeFacet readRangeFacet(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class InternalFacetIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class InternalFacetIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.