public static enum Aggregator.SubAggCollectionMode extends java.lang.Enum<Aggregator.SubAggCollectionMode> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
BREADTH_FIRST
Creates buckets for all matching docs and then prunes to top-scoring buckets
before a second pass over the data when child aggregators are called
but only for docs from the top-scoring buckets
|
DEPTH_FIRST
Creates buckets and delegates to child aggregators in a single pass over
the matching documents
|
Modifier and Type | Field and Description |
---|---|
static ParseField |
KEY |
Modifier and Type | Method and Description |
---|---|
static Aggregator.SubAggCollectionMode |
parse(java.lang.String value) |
ParseField |
parseField() |
static Aggregator.SubAggCollectionMode |
readFromStream(StreamInput in) |
static Aggregator.SubAggCollectionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Aggregator.SubAggCollectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final Aggregator.SubAggCollectionMode DEPTH_FIRST
public static final Aggregator.SubAggCollectionMode BREADTH_FIRST
public static final ParseField KEY
public static Aggregator.SubAggCollectionMode[] values()
for (Aggregator.SubAggCollectionMode c : Aggregator.SubAggCollectionMode.values()) System.out.println(c);
public static Aggregator.SubAggCollectionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ParseField parseField()
public static Aggregator.SubAggCollectionMode parse(java.lang.String value)
public static Aggregator.SubAggCollectionMode readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable