Module org.elasticsearch.server
Class MinPrimaryShardDocsCondition
java.lang.Object
org.elasticsearch.action.admin.indices.rollover.Condition<Long>
org.elasticsearch.action.admin.indices.rollover.MinPrimaryShardDocsCondition
- All Implemented Interfaces:
- NamedWriteable,- Writeable,- ToXContent,- ToXContentFragment
Condition for minimum shard docs. Evaluates to 
true
 when a primary shard in the index has at least Condition.value docs- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.action.admin.indices.rollover.ConditionCondition.Result, Condition.Stats, Condition.TypeNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsFields inherited from class org.elasticsearch.action.admin.indices.rollover.Conditionname, type, valueFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionevaluate(Condition.Stats stats) static MinPrimaryShardDocsConditionfromXContent(XContentParser parser) Returns the name of the writeable objecttoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.admin.indices.rollover.Conditionequals, hashCode, name, toString, type, valueMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
MinPrimaryShardDocsCondition
- 
MinPrimaryShardDocsCondition- Throws:
- IOException
 
 
- 
- 
Method Details- 
evaluate
- 
getWriteableNameDescription copied from interface:NamedWriteableReturns the name of the writeable object
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
- IOException
 
- 
fromXContent- Throws:
- IOException
 
 
-