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 class
Condition.Result
Holder for evaluated condition resultstatic class
Condition.Stats
Holder 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 protected
Condition(java.lang.String name)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
abstract Condition.Result
evaluate(Condition.Stats stats)
int
hashCode()
java.lang.String
name()
java.lang.String
toString()
T
value()
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
value
public T value()
-
name
public java.lang.String name()
-
-