org.pentaho.di.core.util
Class StringEvaluationResult

java.lang.Object
  extended by 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
StringEvaluationResult(ValueMetaInterface conversionMeta)
           
 
Method Summary
 ValueMetaInterface getConversionMeta()
           
 Object getMax()
           
 Object getMin()
           
 int getNrFailures()
           
 int getNrNull()
           
 int getNrSuccesses()
           
 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 setConversionMeta(ValueMetaInterface conversionMeta)
           
 void setMax(Object max)
           
 void setMin(Object min)
           
 void setNrFailures(int nrFailures)
           
 void setNrNull(int nrNull)
           
 void setNrSuccesses(int nrSuccesses)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringEvaluationResult

public StringEvaluationResult(ValueMetaInterface conversionMeta)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

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