NamedWriteable, Writeable, ToXContent, ToXContentFragmentpublic class MaxDocsCondition extends Condition<java.lang.Long>
true
when the index has at least Condition.value docsCondition.Result, Condition.StatsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS| Constructor | Description |
|---|---|
MaxDocsCondition(java.lang.Long value) |
|
MaxDocsCondition(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
Condition.Result |
evaluate(Condition.Stats stats) |
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public MaxDocsCondition(java.lang.Long value)
public MaxDocsCondition(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic Condition.Result evaluate(Condition.Stats stats)
public java.lang.String getWriteableName()
NamedWriteablepublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException