public static class TermsAggregator.BucketCountThresholds extends java.lang.Object implements Writeable<TermsAggregator.BucketCountThresholds>, ToXContent
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
BucketCountThresholds(long minDocCount,
long shardMinDocCount,
int requiredSize,
int shardSize) |
BucketCountThresholds(TermsAggregator.BucketCountThresholds bucketCountThresholds) |
Modifier and Type | Method and Description |
---|---|
void |
ensureValidity() |
boolean |
equals(java.lang.Object obj) |
long |
getMinDocCount() |
int |
getRequiredSize() |
long |
getShardMinDocCount() |
int |
getShardSize() |
int |
hashCode() |
TermsAggregator.BucketCountThresholds |
readFrom(StreamInput in)
Reads an object of this type from the provided StreamInput.
|
static TermsAggregator.BucketCountThresholds |
readFromStream(StreamInput in) |
void |
setMinDocCount(long minDocCount) |
void |
setRequiredSize(int requiredSize) |
void |
setShardMinDocCount(long shardMinDocCount) |
void |
setShardSize(int shardSize) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public BucketCountThresholds(long minDocCount, long shardMinDocCount, int requiredSize, int shardSize)
public BucketCountThresholds(TermsAggregator.BucketCountThresholds bucketCountThresholds)
public static TermsAggregator.BucketCountThresholds readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void ensureValidity()
public long getShardMinDocCount()
public void setShardMinDocCount(long shardMinDocCount)
public long getMinDocCount()
public void setMinDocCount(long minDocCount)
public int getRequiredSize()
public void setRequiredSize(int requiredSize)
public int getShardSize()
public void setShardSize(int shardSize)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public TermsAggregator.BucketCountThresholds readFrom(StreamInput in) throws java.io.IOException
StreamableReader
readFrom
in interface StreamableReader<TermsAggregator.BucketCountThresholds>
readFrom
in interface Writeable<TermsAggregator.BucketCountThresholds>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
writeTo
in interface Writeable<TermsAggregator.BucketCountThresholds>
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object