public class InternalFilterFacet extends InternalFacet implements FilterFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_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) |
getName
public InternalFilterFacet(String name, long count)
public static void registerStreams()
public BytesReference streamType()
streamType
in class InternalFacet
public long getCount()
getCount
in interface FilterFacet
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 FilterFacet readFilterFacet(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.