public class SamplerParser extends Object implements Aggregator.Parser
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
DEFAULT_SHARD_SAMPLE_SIZE |
static boolean |
DEFAULT_USE_GLOBAL_ORDINALS |
static ParseField |
EXECUTION_HINT_FIELD |
static int |
MAX_DOCS_PER_VALUE_DEFAULT |
static ParseField |
MAX_DOCS_PER_VALUE_FIELD |
static ParseField |
SHARD_SIZE_FIELD |
| コンストラクタと説明 |
|---|
SamplerParser() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
AggregatorFactory |
parse(String aggregationName,
XContentParser parser,
SearchContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields). |
String |
type() |
public static final int DEFAULT_SHARD_SAMPLE_SIZE
public static final ParseField SHARD_SIZE_FIELD
public static final ParseField MAX_DOCS_PER_VALUE_FIELD
public static final ParseField EXECUTION_HINT_FIELD
public static final boolean DEFAULT_USE_GLOBAL_ORDINALS
public static final int MAX_DOCS_PER_VALUE_DEFAULT
public String type()
type インタフェース内 Aggregator.Parserpublic AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException
Aggregator.Parsernull indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).parse インタフェース内 Aggregator.ParseraggregationName - The name of the aggregationparser - The xcontent parsercontext - The search contextnull in case the aggregation should be skippedIOException - When parsing failsCopyright © 2009–2016. All rights reserved.