Package org.pentaho.di.core
Class RowMetaAndData
java.lang.Object
org.pentaho.di.core.RowMetaAndData
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addValue
(ValueMetaInterface valueMeta, Object valueData) void
clear()
clone()
int
compare
(RowMetaAndData compare, int[] is, boolean[] bs) boolean
getAsJavaType
(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[]
boolean
getBoolean
(int index, boolean def) boolean
getBoolean
(String valueName, boolean def) Object[]
getData()
getInteger
(int index) long
getInteger
(int index, long def) getInteger
(String valueName) long
getInteger
(String valueName, long def) double
getNumber
(int index, double def) double
static Object
getStringAsJavaType
(String vs, Class<?> destinationType, InjectionTypeConverter converter) Converts string value into specified type.getValueMeta
(int index) int
hashCode()
boolean
isEmptyValue
(String valueName) boolean
isNumeric
(int index) void
mergeRowMetaAndData
(RowMetaAndData rowMetaAndData, String originStepName) void
removeValue
(int index) void
removeValue
(String valueName) void
void
setRowMeta
(RowMetaInterface rowMeta) int
size()
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
-