Package org.elasticsearch.script
Class ScoreScriptUtils
- java.lang.Object
-
- org.elasticsearch.script.ScoreScriptUtils
-
public final class ScoreScriptUtils extends java.lang.ObjectScoringScriptImpl can be used asScoreScriptto run a previously compiled Painless script.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScoreScriptUtils.DecayDateExpstatic classScoreScriptUtils.DecayDateGaussstatic classScoreScriptUtils.DecayDateLinearstatic classScoreScriptUtils.DecayGeoExpstatic classScoreScriptUtils.DecayGeoGaussstatic classScoreScriptUtils.DecayGeoLinearstatic classScoreScriptUtils.DecayNumericExpstatic classScoreScriptUtils.DecayNumericGaussstatic classScoreScriptUtils.DecayNumericLinearstatic classScoreScriptUtils.RandomNotReproducible
-
Constructor Summary
Constructors Constructor Description ScoreScriptUtils()
-
Method Summary
Modifier and Type Method Description static doublerandomReproducible(java.lang.String seedValue, int seed)static doublesaturation(double value, double k)STATIC FUNCTIONS that can be used by users for score calculationsstatic doublesigmoid(double value, double k, double a)Calculate a sigmoid ofvaluewith scaling parameterskanda
-
-
-
Method Detail
-
saturation
public static double saturation(double value, double k)STATIC FUNCTIONS that can be used by users for score calculations
-
sigmoid
public static double sigmoid(double value, double k, double a)Calculate a sigmoid ofvaluewith scaling parameterskanda
-
randomReproducible
public static double randomReproducible(java.lang.String seedValue, int seed)
-
-