public class InternalQueryFacet extends InternalFacet implements QueryFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_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) |
getName
public InternalQueryFacet(String name, long count)
public static void registerStreams()
public BytesReference streamType()
streamType
in class InternalFacet
public long getCount()
QueryFacet
getCount
in interface QueryFacet
public Facet reduce(InternalFacet.ReduceContext context)
reduce
in class InternalFacet
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static QueryFacet readQueryFacet(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
Copyright © 2009–2015. All rights reserved.