org.elasticsearch.search.facet.filter
Class InternalFilterFacet
java.lang.Object
org.elasticsearch.search.facet.filter.InternalFilterFacet
- All Implemented Interfaces:
- Streamable, ToXContent, Facet, FilterFacet, InternalFacet
public class InternalFilterFacet
- extends java.lang.Object
- implements FilterFacet, InternalFacet
Fields inherited from interface org.elasticsearch.search.facet.filter.FilterFacet |
TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalFilterFacet
public InternalFilterFacet(java.lang.String name,
long count)
registerStreams
public static void registerStreams()
streamType
public java.lang.String streamType()
- Specified by:
streamType
in interface InternalFacet
type
public java.lang.String type()
- Description copied from interface:
Facet
- The type of the facet.
- Specified by:
type
in interface Facet
getType
public java.lang.String getType()
- Description copied from interface:
Facet
- The type of the facet.
- Specified by:
getType
in interface Facet
name
public java.lang.String name()
- The "logical" name of the facet.
- Specified by:
name
in interface Facet
getName
public java.lang.String getName()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
- Specified by:
getName
in interface Facet
count
public long count()
- The count of the facet.
- Specified by:
count
in interface FilterFacet
getCount
public long getCount()
- The count of the facet.
- Specified by:
getCount
in interface FilterFacet
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException
readFilterFacet
public static FilterFacet readFilterFacet(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException