Package org.pentaho.di.core
Class RowMetaAndData
java.lang.Object
org.pentaho.di.core.RowMetaAndData
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddValue(ValueMetaInterface valueMeta, Object valueData) voidclear()clone()intcompare(RowMetaAndData compare, int[] is, boolean[] bs) booleangetAsJavaType(String valueName, Class<?> destinationType, InjectionTypeConverter converter) Returns value as specified java type using converter.getBigNumber(int index, BigDecimal def) getBigNumber(String valueName, BigDecimal def) byte[]getBinary(int index, byte[] def) byte[]booleangetBoolean(int index, boolean def) booleangetBoolean(String valueName, boolean def) Object[]getData()getInteger(int index) longgetInteger(int index, long def) getInteger(String valueName) longgetInteger(String valueName, long def) doublegetNumber(int index, double def) doublestatic ObjectgetStringAsJavaType(String vs, Class<?> destinationType, InjectionTypeConverter converter) Converts string value into specified type.getValueMeta(int index) inthashCode()booleanisEmptyValue(String valueName) booleanisNumeric(int index) voidmergeRowMetaAndData(RowMetaAndData rowMetaAndData, String originStepName) voidremoveValue(int index) voidremoveValue(String valueName) voidvoidsetRowMeta(RowMetaInterface rowMeta) intsize()toString()
-
Constructor Details
-
RowMetaAndData
public RowMetaAndData() -
RowMetaAndData
- Parameters:
rowMeta-data-
-
-
Method Details
-
clone
-
toString
-
getData
- Returns:
- the data
-
setData
- Parameters:
data- the data to set
-
getRowMeta
- Returns:
- the rowMeta
-
setRowMeta
- Parameters:
rowMeta- the rowMeta to set
-
hashCode
public int hashCode() -
equals
-
addValue
-
addValue
-
clear
public void clear() -
getInteger
- Throws:
KettleValueException
-
getInteger
- Throws:
KettleValueException
-
getInteger
- Throws:
KettleValueException
-
getInteger
- Throws:
KettleValueException
-
getNumber
- Throws:
KettleValueException
-
getNumber
- Throws:
KettleValueException
-
getDate
- Throws:
KettleValueException
-
getDate
- Throws:
KettleValueException
-
getBigNumber
- Throws:
KettleValueException
-
getBigNumber
- Throws:
KettleValueException
-
getBoolean
- Throws:
KettleValueException
-
getBoolean
- Throws:
KettleValueException
-
getString
- Throws:
KettleValueException
-
getString
- Throws:
KettleValueException
-
getBinary
- Throws:
KettleValueException
-
getBinary
- Throws:
KettleValueException
-
compare
- Throws:
KettleValueException
-
isNumeric
public boolean isNumeric(int index) -
size
public int size() -
getValueMeta
-
isEmptyValue
- Throws:
KettleValueException
-
getStringAsJavaType
public static Object getStringAsJavaType(String vs, Class<?> destinationType, InjectionTypeConverter converter) throws KettleValueException Converts string value into specified type. Used for constant injection.- Throws:
KettleValueException
-
getAsJavaType
public Object getAsJavaType(String valueName, Class<?> destinationType, InjectionTypeConverter converter) throws KettleValueException Returns value as specified java type using converter. Used for metadata injection.- Throws:
KettleValueException
-
removeValue
- Throws:
KettleValueException
-
removeValue
public void removeValue(int index) -
mergeRowMetaAndData
-