Package org.pentaho.di.core
Class RowMetaAndData
- java.lang.Object
-
- org.pentaho.di.core.RowMetaAndData
-
-
Constructor Summary
Constructors Constructor Description RowMetaAndData()RowMetaAndData(RowMetaInterface rowMeta, Object... data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(String valueName, int valueType, Object valueData)voidaddValue(ValueMetaInterface valueMeta, Object valueData)voidclear()RowMetaAndDataclone()intcompare(RowMetaAndData compare, int[] is, boolean[] bs)booleanequals(Object obj)ObjectgetAsJavaType(String valueName, Class<?> destinationType, InjectionTypeConverter converter)Returns value as specified java type using converter.BigDecimalgetBigNumber(int index, BigDecimal def)BigDecimalgetBigNumber(String valueName, BigDecimal def)byte[]getBinary(int index, byte[] def)byte[]getBinary(String valueName, byte[] def)booleangetBoolean(int index, boolean def)booleangetBoolean(String valueName, boolean def)Object[]getData()DategetDate(int index, Date def)DategetDate(String valueName, Date def)LonggetInteger(int index)longgetInteger(int index, long def)LonggetInteger(String valueName)longgetInteger(String valueName, long def)doublegetNumber(int index, double def)doublegetNumber(String valueName, double def)RowMetaInterfacegetRowMeta()StringgetString(int index, String def)StringgetString(String valueName, String def)static ObjectgetStringAsJavaType(String vs, Class<?> destinationType, InjectionTypeConverter converter)Converts string value into specified type.ValueMetaInterfacegetValueMeta(int index)inthashCode()booleanisEmptyValue(String valueName)booleanisNumeric(int index)voidmergeRowMetaAndData(RowMetaAndData rowMetaAndData, String originStepName)voidremoveValue(int index)voidremoveValue(String valueName)voidsetData(Object[] data)voidsetRowMeta(RowMetaInterface rowMeta)intsize()StringtoString()
-
-
-
Constructor Detail
-
RowMetaAndData
public RowMetaAndData()
-
RowMetaAndData
public RowMetaAndData(RowMetaInterface rowMeta, Object... data)
- Parameters:
rowMeta-data-
-
-
Method Detail
-
clone
public RowMetaAndData clone()
-
getData
public Object[] getData()
- Returns:
- the data
-
setData
public void setData(Object[] data)
- Parameters:
data- the data to set
-
getRowMeta
public RowMetaInterface getRowMeta()
- Returns:
- the rowMeta
-
setRowMeta
public void setRowMeta(RowMetaInterface rowMeta)
- Parameters:
rowMeta- the rowMeta to set
-
addValue
public void addValue(ValueMetaInterface valueMeta, Object valueData)
-
clear
public void clear()
-
getInteger
public long getInteger(String valueName, long def) throws KettleValueException
- Throws:
KettleValueException
-
getInteger
public long getInteger(int index, long def) throws KettleValueException- Throws:
KettleValueException
-
getInteger
public Long getInteger(String valueName) throws KettleValueException
- Throws:
KettleValueException
-
getInteger
public Long getInteger(int index) throws KettleValueException
- Throws:
KettleValueException
-
getNumber
public double getNumber(String valueName, double def) throws KettleValueException
- Throws:
KettleValueException
-
getNumber
public double getNumber(int index, double def) throws KettleValueException- Throws:
KettleValueException
-
getDate
public Date getDate(String valueName, Date def) throws KettleValueException
- Throws:
KettleValueException
-
getDate
public Date getDate(int index, Date def) throws KettleValueException
- Throws:
KettleValueException
-
getBigNumber
public BigDecimal getBigNumber(String valueName, BigDecimal def) throws KettleValueException
- Throws:
KettleValueException
-
getBigNumber
public BigDecimal getBigNumber(int index, BigDecimal def) throws KettleValueException
- Throws:
KettleValueException
-
getBoolean
public boolean getBoolean(String valueName, boolean def) throws KettleValueException
- Throws:
KettleValueException
-
getBoolean
public boolean getBoolean(int index, boolean def) throws KettleValueException- Throws:
KettleValueException
-
getString
public String getString(String valueName, String def) throws KettleValueException
- Throws:
KettleValueException
-
getString
public String getString(int index, String def) throws KettleValueException
- Throws:
KettleValueException
-
getBinary
public byte[] getBinary(String valueName, byte[] def) throws KettleValueException
- Throws:
KettleValueException
-
getBinary
public byte[] getBinary(int index, byte[] def) throws KettleValueException- Throws:
KettleValueException
-
compare
public int compare(RowMetaAndData compare, int[] is, boolean[] bs) throws KettleValueException
- Throws:
KettleValueException
-
isNumeric
public boolean isNumeric(int index)
-
size
public int size()
-
getValueMeta
public ValueMetaInterface getValueMeta(int index)
-
isEmptyValue
public boolean isEmptyValue(String valueName) throws KettleValueException
- 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
public void removeValue(String valueName) throws KettleValueException
- Throws:
KettleValueException
-
removeValue
public void removeValue(int index)
-
mergeRowMetaAndData
public void mergeRowMetaAndData(RowMetaAndData rowMetaAndData, String originStepName)
-
-