public class InternalQueryFacet extends InternalFacet implements QueryFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.StreamsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPEEMPTY_PARAMS| Constructor and Description |
|---|
InternalQueryFacet(String name,
long count) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
The count of the facet.
|
String |
getType()
The type of the facet.
|
void |
readFrom(StreamInput in) |
static QueryFacet |
readQueryFacet(StreamInput in) |
Facet |
reduce(InternalFacet.ReduceContext context) |
static void |
registerStreams() |
BytesReference |
streamType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getNamepublic InternalQueryFacet(String name, long count)
public static void registerStreams()
public BytesReference streamType()
streamType in class InternalFacetpublic long getCount()
QueryFacetgetCount in interface QueryFacetpublic Facet reduce(InternalFacet.ReduceContext context)
reduce in class InternalFacetpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static QueryFacet readQueryFacet(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.