Class Condition<T>
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.rollover.Condition<T>
-
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment
- Direct Known Subclasses:
MaxAgeCondition,MaxDocsCondition,MaxSizeCondition
public abstract class Condition<T> extends java.lang.Object implements NamedWriteable, ToXContentFragment
Base class for rollover request conditions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCondition.ResultHolder for evaluated condition resultstatic classCondition.StatsHolder for index stats used to evaluate conditions-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCondition(java.lang.String name)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)abstract Condition.Resultevaluate(Condition.Stats stats)inthashCode()java.lang.Stringname()java.lang.StringtoString()Tvalue()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
value
protected T value
-
name
protected final java.lang.String name
-
-
Method Detail
-
evaluate
public abstract Condition.Result evaluate(Condition.Stats stats)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
value
public T value()
-
name
public java.lang.String name()
-
-