public class InternalFilterFacet extends InternalFacet implements FilterFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.StreamsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPEEMPTY_PARAMS| Constructor and Description |
|---|
InternalFilterFacet(String name,
long count) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
The count of the facet.
|
String |
getType()
The type of the facet.
|
static FilterFacet |
readFilterFacet(StreamInput in) |
void |
readFrom(StreamInput in) |
Facet |
reduce(InternalFacet.ReduceContext context) |
static void |
registerStreams() |
BytesReference |
streamType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getNamepublic InternalFilterFacet(String name, long count)
public static void registerStreams()
public BytesReference streamType()
streamType in class InternalFacetpublic long getCount()
getCount in interface FilterFacetpublic Facet reduce(InternalFacet.ReduceContext context)
reduce in class InternalFacetpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static FilterFacet readFilterFacet(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 InternalFacetIOExceptionCopyright © 2009–2016. All rights reserved.