当前位置: 首页>>代码示例>>Java>>正文


Java ValueMetaString.getTrimTypeByDesc方法代码示例

本文整理汇总了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();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:37,代码来源:FieldSplitterDialog.java

示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:32,代码来源:RegexEvalDialog.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:TextFileField.java


注:本文中的org.pentaho.di.core.row.value.ValueMetaString.getTrimTypeByDesc方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。