org.elasticsearch.index.search.stats
Class SearchStats

java.lang.Object
  extended by org.elasticsearch.index.search.stats.SearchStats
All Implemented Interfaces:
Streamable, ToXContent

public class SearchStats
extends Object
implements Streamable, ToXContent


Nested Class Summary
static class SearchStats.Stats
           
 
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
SearchStats()
           
SearchStats(SearchStats.Stats totalStats, Map<String,SearchStats.Stats> groupStats)
           
 
Method Summary
 void add(SearchStats searchStats)
           
 void add(SearchStats searchStats, boolean includeTypes)
           
 Map<String,SearchStats.Stats> groupStats()
           
 void readFrom(StreamInput in)
           
static SearchStats readSearchStats(StreamInput in)
           
 SearchStats.Stats total()
           
 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

SearchStats

public SearchStats()

SearchStats

public SearchStats(SearchStats.Stats totalStats,
                   @Nullable
                   Map<String,SearchStats.Stats> groupStats)
Method Detail

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.