org.elasticsearch.index.search.stats
Class SearchStats
java.lang.Object
org.elasticsearch.index.search.stats.SearchStats
- All Implemented Interfaces:
- Streamable, ToXContent
public class SearchStats
- extends Object
- implements Streamable, ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchStats
public SearchStats()
SearchStats
public SearchStats(SearchStats.Stats totalStats,
@Nullable
Map<String,SearchStats.Stats> groupStats)
add
public void add(SearchStats searchStats)
add
public void add(SearchStats searchStats,
boolean includeTypes)
total
public SearchStats.Stats total()
groupStats
@Nullable
public Map<String,SearchStats.Stats> groupStats()
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
IOException
readSearchStats
public static SearchStats readSearchStats(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.