• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java StringListPluginProperty类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.pentaho.di.core.util.StringListPluginProperty的典型用法代码示例。如果您正苦于以下问题:Java StringListPluginProperty类的具体用法?Java StringListPluginProperty怎么用?Java StringListPluginProperty使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

StringListPluginProperty类属于org.pentaho.di.core.util包,在下文中一共展示了StringListPluginProperty类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: insert

点赞 3

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @param targetTableFields
 *          ...
 * @param tableFieldList
 * @param tableName
 *          ...
 * @return ...
 */
public FastloadControlBuilder insert( final RowMetaInterface targetTableFields,
  StringListPluginProperty tableFieldList, final String tableName ) {
  Assert.assertNotNull( targetTableFields, "targetTableFields cannot be null." );
  Assert.assertNotNull( tableName, "TableName cannot be null." );

  this.builder.append( "INSERT INTO " + tableName + "(" );
  for ( int i = 0; i < targetTableFields.size(); i++ ) {
    int tableIndex = tableFieldList.getValue().indexOf( targetTableFields.getValueMeta( i ).getName() );
    if ( tableIndex >= 0 ) {
      this.builder.append( ":" + targetTableFields.getValueMeta( i ).getName() );
      if ( targetTableFields.getValueMeta( i ).getType() == ValueMetaInterface.TYPE_DATE ) {
        this.builder.append( "(DATE, FORMAT '" );
        this.builder.append( DEFAULT_DATE_FORMAT );
        this.builder.append( "')" );
      }
      if ( i < tableFieldList.size() - 1 ) {
        this.builder.append( "," );
      }
    }
  }
  this.builder.append( ")" );
  return this.newline();
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:32,
代码来源:FastloadControlBuilder.java

示例2: define

点赞 2

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @param targetTableFields
 *          ...
 * @param dataFile
 *          ...
 * @return this
 */
public FastloadControlBuilder define( final RowMetaInterface targetTableFields,
  StringListPluginProperty tableFieldList, final String dataFile ) {
  Assert.assertNotNull( targetTableFields, "fields cannot be null" );
  Assert.assertNotNull( dataFile, "dataFile cannot be null" );

  this.builder.append( "DEFINE " );
  for ( int i = 0; i < targetTableFields.size(); i++ ) {
    ValueMetaInterface value = targetTableFields.getValueMeta( i );
    int tableIndex = tableFieldList.getValue().indexOf( value.getName() );
    if ( tableIndex >= 0 ) {
      this.builder.append( value.getName() );
      // all fields of type VARCHAR. converted by fastload if necessary
      int length = 0;
      if ( value.getType() == ValueMetaInterface.TYPE_DATE ) {
        length = DEFAULT_DATE_FORMAT.length();
      } else {
        length = value.getLength();
      }
      this.builder.append( "("
        + "VARCHAR(" + length + "), nullif = '" + String.format( "%1$" + length + "s", DEFAULT_NULL_VALUE )
        + "'), " );
      this.builder.append( SystemUtils.LINE_SEPARATOR );
    }
  }
  this.builder.append( " NEWLINECHAR(VARCHAR(" + SystemUtils.LINE_SEPARATOR.length() + "))" );
  this.builder.append( " FILE=" + dataFile );
  return this.newline();
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:36,
代码来源:FastloadControlBuilder.java

示例3: getTableFieldList

点赞 2

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @return the tableFieldList
 */
public StringListPluginProperty getTableFieldList() {
    return this.tableFieldList;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:7,
代码来源:TeraFastMeta.java

示例4: getStreamFieldList

点赞 2

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @return the streamFieldList
 */
public StringListPluginProperty getStreamFieldList() {
    return this.streamFieldList;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:7,
代码来源:TeraFastMeta.java

示例5: getTableFieldList

点赞 2

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @return the tableFieldList
 */
public StringListPluginProperty getTableFieldList() {
  return this.tableFieldList;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:7,
代码来源:TeraFastMeta.java

示例6: getStreamFieldList

点赞 2

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @return the streamFieldList
 */
public StringListPluginProperty getStreamFieldList() {
  return this.streamFieldList;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:7,
代码来源:TeraFastMeta.java

示例7: setTableFieldList

点赞 1

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @param tableFieldList
 *            the tableFieldList to set
 */
public void setTableFieldList(final StringListPluginProperty tableFieldList) {
    this.tableFieldList = tableFieldList;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:8,
代码来源:TeraFastMeta.java

示例8: setStreamFieldList

点赞 1

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @param streamFieldList
 *            the streamFieldList to set
 */
public void setStreamFieldList(final StringListPluginProperty streamFieldList) {
    this.streamFieldList = streamFieldList;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:8,
代码来源:TeraFastMeta.java

示例9: setTableFieldList

点赞 1

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @param tableFieldList
 *          the tableFieldList to set
 */
public void setTableFieldList( final StringListPluginProperty tableFieldList ) {
  this.tableFieldList = tableFieldList;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:8,
代码来源:TeraFastMeta.java

示例10: setStreamFieldList

点赞 1

import org.pentaho.di.core.util.StringListPluginProperty; //导入依赖的package包/类
/**
 * @param streamFieldList
 *          the streamFieldList to set
 */
public void setStreamFieldList( final StringListPluginProperty streamFieldList ) {
  this.streamFieldList = streamFieldList;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:8,
代码来源:TeraFastMeta.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)