Package org.pentaho.di.core.util
Class StringEvaluationResult
- java.lang.Object
-
- org.pentaho.di.core.util.StringEvaluationResult
-
public class StringEvaluationResult extends Object
Utility class to hold the result of a set of string evaluations: a valid conversion metadata object (with data type, trim options, etc) and the minimum and maximum value encountered.- Author:
- matt
-
-
Constructor Summary
Constructors Constructor Description StringEvaluationResult(ValueMetaInterface conversionMeta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueMetaInterface
getConversionMeta()
Object
getMax()
Object
getMin()
int
getNrExponentValues()
int
getNrFailures()
int
getNrNull()
int
getNrSuccesses()
int
getNrTruncations()
void
incrementExponentValues()
void
incrementFailures()
Increment the number of failures by one.void
incrementNrNull()
Increment the number of null values encountered.void
incrementSuccesses()
Increment the number of successes by one.void
incrementTruncations()
void
setConversionMeta(ValueMetaInterface conversionMeta)
void
setMax(Object max)
void
setMin(Object min)
void
setNrExponentValues(int nrExponentValues)
void
setNrFailures(int nrFailures)
void
setNrNull(int nrNull)
void
setNrSuccesses(int nrSuccesses)
void
setNrTruncations(int nrTruncations)
String
toString()
-
-
-
Constructor Detail
-
StringEvaluationResult
public StringEvaluationResult(ValueMetaInterface conversionMeta)
-
-
Method Detail
-
getConversionMeta
public ValueMetaInterface getConversionMeta()
- Returns:
- the conversionMeta
-
setConversionMeta
public void setConversionMeta(ValueMetaInterface conversionMeta)
- Parameters:
conversionMeta
- the conversionMeta to set
-
getMin
public Object getMin()
- Returns:
- the min
-
setMin
public void setMin(Object min)
- Parameters:
min
- the min to set
-
getMax
public Object getMax()
- Returns:
- the max
-
setMax
public void setMax(Object max)
- Parameters:
max
- the max to set
-
getNrNull
public int getNrNull()
- Returns:
- The number of null values encountered
-
setNrNull
public void setNrNull(int nrNull)
- Parameters:
nrNull
- Set the number of null values to set
-
incrementNrNull
public void incrementNrNull()
Increment the number of null values encountered.
-
incrementSuccesses
public void incrementSuccesses()
Increment the number of successes by one.
-
incrementFailures
public void incrementFailures()
Increment the number of failures by one.
-
getNrSuccesses
public int getNrSuccesses()
- Returns:
- the nrSuccesses
-
setNrSuccesses
public void setNrSuccesses(int nrSuccesses)
- Parameters:
nrSuccesses
- the nrSuccesses to set
-
getNrFailures
public int getNrFailures()
- Returns:
- the nrFailures
-
setNrFailures
public void setNrFailures(int nrFailures)
- Parameters:
nrFailures
- the nrFailures to set
-
getNrTruncations
public int getNrTruncations()
-
setNrTruncations
public void setNrTruncations(int nrTruncations)
-
incrementTruncations
public void incrementTruncations()
-
getNrExponentValues
public int getNrExponentValues()
-
setNrExponentValues
public void setNrExponentValues(int nrExponentValues)
-
incrementExponentValues
public void incrementExponentValues()
-
-