本文整理汇总了Java中org.pentaho.di.core.RowMetaAndData.getNumber方法的典型用法代码示例。如果您正苦于以下问题:Java RowMetaAndData.getNumber方法的具体用法?Java RowMetaAndData.getNumber怎么用?Java RowMetaAndData.getNumber使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.RowMetaAndData
的用法示例。
在下文中一共展示了RowMetaAndData.getNumber方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTransAttributeNumber
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized double getTransAttributeNumber(long id_transformation, int nr, String code) throws KettleException
{
RowMetaAndData r = null;
r = getTransAttributeRow(id_transformation, nr, code);
if (r == null)
return 0.0;
return r.getNumber(FIELD_TRANS_ATTRIBUTE_VALUE_NUM, 0.0);
}
示例2: getJobAttributeNumber
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized double getJobAttributeNumber(long id_job, int nr, String code) throws KettleException
{
RowMetaAndData r = null;
r = getJobAttributeRow(id_job, nr, code);
if (r == null)
return 0.0;
return r.getNumber(FIELD_JOB_ATTRIBUTE_VALUE_NUM, 0.0);
}
示例3: getJobEntryAttributeNumber
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public double getJobEntryAttributeNumber(long id_jobentry, int nr, String code) throws KettleException
{
RowMetaAndData r = getJobEntryAttributeRow(id_jobentry, nr, code);
if (r == null)
return 0.0;
return r.getNumber(FIELD_JOBENTRY_ATTRIBUTE_VALUE_NUM, 0.0);
}
示例4: getTransAttributeNumber
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized double getTransAttributeNumber(ObjectId id_transformation, int nr, String code) throws KettleException
{
RowMetaAndData r = null;
r = getTransAttributeRow(id_transformation, nr, code);
if (r == null)
return 0.0;
return r.getNumber(KettleDatabaseRepository.FIELD_TRANS_ATTRIBUTE_VALUE_NUM, 0.0);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:KettleDatabaseRepositoryConnectionDelegate.java
示例5: getJobAttributeNumber
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized double getJobAttributeNumber(ObjectId id_job, int nr, String code) throws KettleException
{
RowMetaAndData r = null;
r = getJobAttributeRow(id_job, nr, code);
if (r == null)
return 0.0;
return r.getNumber(KettleDatabaseRepository.FIELD_JOB_ATTRIBUTE_VALUE_NUM, 0.0);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:KettleDatabaseRepositoryConnectionDelegate.java
示例6: getJobEntryAttributeNumber
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public double getJobEntryAttributeNumber(ObjectId id_jobentry, int nr, String code) throws KettleException
{
RowMetaAndData r = getJobEntryAttributeRow(id_jobentry, nr, code);
if (r == null)
return 0.0;
return r.getNumber(KettleDatabaseRepository.FIELD_JOBENTRY_ATTRIBUTE_VALUE_NUM, 0.0);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:8,代码来源:KettleDatabaseRepositoryConnectionDelegate.java
示例7: setEntryValue
import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
private void setEntryValue(StepInjectionMetaEntry entry, RowMetaAndData row, SourceStepField source) throws KettleValueException {
// A standard attribute, a single row of data...
//
Object value = null;
switch(entry.getValueType()) {
case ValueMetaInterface.TYPE_STRING: value = row.getString(source.getField(), null); break;
case ValueMetaInterface.TYPE_BOOLEAN: value = row.getBoolean(source.getField(), false); break;
case ValueMetaInterface.TYPE_INTEGER: value = row.getInteger(source.getField(), 0L); break;
case ValueMetaInterface.TYPE_NUMBER: value = row.getNumber(source.getField(), 0.0D); break;
case ValueMetaInterface.TYPE_DATE: value = row.getDate(source.getField(), null); break;
case ValueMetaInterface.TYPE_BIGNUMBER: value = row.getBigNumber(source.getField(), null); break;
}
entry.setValue(value);
}