Class NumberRangeSet
- java.lang.Object
-
- org.pentaho.di.trans.steps.numberrange.NumberRangeSet
-
public class NumberRangeSet extends Object
This class assigns numbers into ranges- Author:
- ronny.roeller@fredhopper.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
MULTI_VALUE_SEPARATOR
-
Constructor Summary
Constructors Constructor Description NumberRangeSet(List<NumberRangeRule> rules, String fallBackValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
evaluate(Double value)
Evaluates a value against all rules.String
evaluate(String strValue)
Evaluates a value against all rules.protected String
evaluateDouble(double value)
Evaluates a value against all rulesstatic String
getMultiValueSeparator()
Returns separator that is added if a value matches multiple ranges.
-
-
-
Field Detail
-
MULTI_VALUE_SEPARATOR
public static final String MULTI_VALUE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NumberRangeSet
public NumberRangeSet(List<NumberRangeRule> rules, String fallBackValue)
-
-
Method Detail
-
evaluateDouble
protected String evaluateDouble(double value)
Evaluates a value against all rules
-
getMultiValueSeparator
public static String getMultiValueSeparator()
Returns separator that is added if a value matches multiple ranges.
-
evaluate
public String evaluate(String strValue) throws org.pentaho.di.core.exception.KettleException
Evaluates a value against all rules. Return empty value if input is not numeric.- Throws:
org.pentaho.di.core.exception.KettleException
-
-