Package org.pentaho.di.core.util
Class StringEvaluator
java.lang.Object
org.pentaho.di.core.util.StringEvaluator
This class evaluates strings and extracts a data type. It allows you to criteria after which the analysis should be
completed.
- Author:
- matt
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStringEvaluator
(boolean tryTrimming) StringEvaluator
(boolean tryTrimming, String[] numberFormats, String[] dateFormats) StringEvaluator
(boolean tryTrimming, String[] numberFormats, String[] dateFormats, boolean autoScaling) StringEvaluator
(boolean tryTrimming, List<String> numberFormats, List<String> dateFormats) -
Method Summary
Modifier and TypeMethodDescriptionprotected static int
determinePrecision
(String numericFormat) void
evaluateString
(String value) int
getCount()
String[]
int
String[]
PDI-7736: Only list of successful evaluations returned.
-
Field Details
-
PRECISION_PATTERN
-
-
Constructor Details
-
StringEvaluator
public StringEvaluator() -
StringEvaluator
public StringEvaluator(boolean tryTrimming) -
StringEvaluator
-
StringEvaluator
-
StringEvaluator
-
-
Method Details
-
evaluateString
-
getAdvicedResult
-
getDateFormats
-
getNumberFormats
-
determinePrecision
-
getValues
- Returns:
- The distinct set of string values
-
getStringEvaluationResults
PDI-7736: Only list of successful evaluations returned.- Returns:
- The list of string evaluation results
-
getCount
public int getCount()- Returns:
- the number of values analyzed
-
getMaxLength
public int getMaxLength()- Returns:
- The maximum string length encountered
-