Package org.elasticsearch.script
Class ScriptCache.CompilationRate
java.lang.Object
org.elasticsearch.script.ScriptCache.CompilationRate
- Enclosing class:
- ScriptCache
public static class ScriptCache.CompilationRate
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CompilationRate(java.lang.Integer count, org.elasticsearch.common.unit.TimeValue time)
CompilationRate(java.lang.String value)
Parses a string as a non-negative int count and aTimeValue
as arguments split by a slashCompilationRate(org.elasticsearch.common.collect.Tuple<java.lang.Integer,org.elasticsearch.common.unit.TimeValue> rate)
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
count
public final int count -
time
public final org.elasticsearch.common.unit.TimeValue time
-
-
Constructor Details
-
CompilationRate
public CompilationRate(java.lang.Integer count, org.elasticsearch.common.unit.TimeValue time) -
CompilationRate
public CompilationRate(org.elasticsearch.common.collect.Tuple<java.lang.Integer,org.elasticsearch.common.unit.TimeValue> rate) -
CompilationRate
public CompilationRate(java.lang.String value)Parses a string as a non-negative int count and aTimeValue
as arguments split by a slash
-
-
Method Details
-
asTuple
public org.elasticsearch.common.collect.Tuple<java.lang.Integer,org.elasticsearch.common.unit.TimeValue> asTuple() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-