本文整理汇总了Java中org.pentaho.di.core.row.value.ValueMetaString.getTrimTypeByDesc方法的典型用法代码示例。如果您正苦于以下问题:Java ValueMetaString.getTrimTypeByDesc方法的具体用法?Java ValueMetaString.getTrimTypeByDesc怎么用?Java ValueMetaString.getTrimTypeByDesc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.row.value.ValueMetaString
的用法示例。
在下文中一共展示了ValueMetaString.getTrimTypeByDesc方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ok
import org.pentaho.di.core.row.value.ValueMetaString; //导入方法依赖的package包/类
private void ok() {
if ( Utils.isEmpty( wStepname.getText() ) ) {
return;
}
stepname = wStepname.getText(); // return value
input.setSplitField( wSplitfield.getText() );
input.setDelimiter( wDelimiter.getText() );
input.setEnclosure( wEnclosure.getText() );
// Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
input.allocate( nrfields );
//CHECKSTYLE:Indentation:OFF
for ( int i = 0; i < input.getFieldName().length; i++ ) {
final TableItem ti = wFields.getNonEmpty( i );
input.getFieldName()[i] = ti.getText( 1 );
input.getFieldID()[i] = ti.getText( 2 );
input.getFieldRemoveID()[i] = "Y".equalsIgnoreCase( ti.getText( 3 ) );
input.getFieldType()[i] = ValueMetaFactory.getIdForValueMeta( ti.getText( 4 ) );
input.getFieldLength()[i] = Const.toInt( ti.getText( 5 ), -1 );
input.getFieldPrecision()[i] = Const.toInt( ti.getText( 6 ), -1 );
input.getFieldFormat()[i] = ti.getText( 7 );
input.getFieldGroup()[i] = ti.getText( 8 );
input.getFieldDecimal()[i] = ti.getText( 9 );
input.getFieldCurrency()[i] = ti.getText( 10 );
input.getFieldNullIf()[i] = ti.getText( 11 );
input.getFieldIfNull()[i] = ti.getText( 12 );
input.getFieldTrimType()[i] = ValueMetaString.getTrimTypeByDesc( ti.getText( 13 ) );
}
dispose();
}
示例2: ok
import org.pentaho.di.core.row.value.ValueMetaString; //导入方法依赖的package包/类
private void ok() {
if ( Utils.isEmpty( wStepname.getText() ) ) {
return;
}
stepname = wStepname.getText(); // return value
setRegexOptions( input );
int nrfields = wFields.nrNonEmpty();
input.allocate( nrfields );
//CHECKSTYLE:Indentation:OFF
for ( int i = 0; i < input.getFieldName().length; i++ ) {
TableItem ti = wFields.getNonEmpty( i );
input.getFieldName()[i] = ti.getText( 1 );
input.getFieldType()[i] = ValueMetaFactory.getIdForValueMeta( ti.getText( 2 ) );
input.getFieldLength()[i] = Const.toInt( ti.getText( 3 ), -1 );
input.getFieldPrecision()[i] = Const.toInt( ti.getText( 4 ), -1 );
input.getFieldFormat()[i] = ti.getText( 5 );
input.getFieldGroup()[i] = ti.getText( 6 );
input.getFieldDecimal()[i] = ti.getText( 7 );
input.getFieldCurrency()[i] = ti.getText( 8 );
input.getFieldNullIf()[i] = ti.getText( 9 );
input.getFieldIfNull()[i] = ti.getText( 10 );
input.getFieldTrimType()[i] = ValueMetaString.getTrimTypeByDesc( ti.getText( 11 ) );
}
dispose();
}
示例3: setTrimTypeByDesc
import org.pentaho.di.core.row.value.ValueMetaString; //导入方法依赖的package包/类
@Injection( name = "OUTPUT_TRIM", group = "OUTPUT_FIELDS" )
public void setTrimTypeByDesc( String value ) {
this.trimType = ValueMetaString.getTrimTypeByDesc( value );
}