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 void
addValue(String valueName, int valueType, Object valueData)
void
addValue(ValueMetaInterface valueMeta, Object valueData)
void
clear()
RowMetaAndData
clone()
int
compare(RowMetaAndData compare, int[] is, boolean[] bs)
boolean
equals(Object obj)
Object
getAsJavaType(String valueName, Class<?> destinationType, InjectionTypeConverter converter)
Returns value as specified java type using converter.BigDecimal
getBigNumber(int index, BigDecimal def)
BigDecimal
getBigNumber(String valueName, BigDecimal def)
byte[]
getBinary(int index, byte[] def)
byte[]
getBinary(String valueName, byte[] def)
boolean
getBoolean(int index, boolean def)
boolean
getBoolean(String valueName, boolean def)
Object[]
getData()
Date
getDate(int index, Date def)
Date
getDate(String valueName, Date def)
Long
getInteger(int index)
long
getInteger(int index, long def)
Long
getInteger(String valueName)
long
getInteger(String valueName, long def)
double
getNumber(int index, double def)
double
getNumber(String valueName, double def)
RowMetaInterface
getRowMeta()
String
getString(int index, String def)
String
getString(String valueName, String def)
static Object
getStringAsJavaType(String vs, Class<?> destinationType, InjectionTypeConverter converter)
Converts string value into specified type.ValueMetaInterface
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
setData(Object[] data)
void
setRowMeta(RowMetaInterface rowMeta)
int
size()
String
toString()
-
-
-
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)
-
-