|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.facet.InternalFacets
public class InternalFacets
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
InternalFacets(List<Facet> facets)
Constructs a new facets. |
Method Summary | ||
---|---|---|
|
facet(Class<T> facetType,
String name)
Returns the facet by name already casted to the specified type. |
|
|
facet(String name)
A facet of the specified name. |
|
List<Facet> |
facets()
The list of Facet s. |
|
Map<String,Facet> |
facetsAsMap()
Returns the Facet s keyed by map. |
|
Map<String,Facet> |
getFacets()
Returns the Facet s keyed by map. |
|
Iterator<Facet> |
iterator()
Iterates over the Facet s. |
|
static InternalFacets |
readFacets(StreamInput in)
|
|
void |
readFrom(StreamInput in)
|
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalFacets(List<Facet> facets)
Method Detail |
---|
public Iterator<Facet> iterator()
Facet
s.
iterator
in interface Iterable<Facet>
public List<Facet> facets()
Facet
s.
facets
in interface Facets
public Map<String,Facet> getFacets()
Facet
s keyed by map.
getFacets
in interface Facets
public Map<String,Facet> facetsAsMap()
Facet
s keyed by map.
facetsAsMap
in interface Facets
public <T extends Facet> T facet(Class<T> facetType, String name)
facet
in interface Facets
public <T extends Facet> T facet(String name)
facet
in interface Facets
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static InternalFacets readFacets(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |