类 ParsedStringStats
java.lang.Object
org.easysearch.search.aggregations.ParsedAggregation
org.easysearch.client.analytics.ParsedStringStats
- 所有已实现的接口:
org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentFragment,org.easysearch.search.aggregations.Aggregation
public class ParsedStringStats
extends org.easysearch.search.aggregations.ParsedAggregation
Results from the
string_stats aggregation.-
嵌套类概要
从接口继承的嵌套类/接口 org.easysearch.search.aggregations.Aggregation
org.easysearch.search.aggregations.Aggregation.CommonFields从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
字段 修饰符和类型 字段 说明 static org.easysearch.common.xcontent.ConstructingObjectParser<ParsedStringStats,java.lang.String>PARSER从类继承的字段 org.easysearch.search.aggregations.ParsedAggregation
metadata从接口继承的字段 org.easysearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS -
方法概要
修饰符和类型 方法 说明 protected org.easysearch.common.xcontent.XContentBuilderdoXContentBody(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)doublegetAvgLength()The average length computed over all terms.longgetCount()The number of non-empty fields counted.java.util.Map<java.lang.String,java.lang.Double>getDistribution()The probability distribution for all characters.doublegetEntropy()The Shannon Entropy value computed over all terms collected by the aggregation.intgetMaxLength()The length of the longest term.intgetMinLength()The length of the shortest term.java.lang.StringgetType()从类继承的方法 org.easysearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContent从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentFragment
isFragment
-
字段详细资料
-
PARSER
public static final org.easysearch.common.xcontent.ConstructingObjectParser<ParsedStringStats,java.lang.String> PARSER
-
-
方法详细资料
-
getCount
public long getCount()The number of non-empty fields counted. -
getMinLength
public int getMinLength()The length of the shortest term. -
getMaxLength
public int getMaxLength()The length of the longest term. -
getAvgLength
public double getAvgLength()The average length computed over all terms. -
getEntropy
public double getEntropy()The Shannon Entropy value computed over all terms collected by the aggregation. Shannon entropy quantifies the amount of information contained in the field. It is a very useful metric for measuring a wide range of properties of a data set, such as diversity, similarity, randomness etc. -
getDistribution
public java.util.Map<java.lang.String,java.lang.Double> getDistribution()The probability distribution for all characters.nullunless explicitly requested withStringStatsAggregationBuilder.showDistribution(boolean). -
getType
public java.lang.String getType() -
doXContentBody
protected org.easysearch.common.xcontent.XContentBuilder doXContentBody(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
doXContentBody在类中org.easysearch.search.aggregations.ParsedAggregation- 抛出:
java.io.IOException
-