org.pentaho.di.core.Const.getConversionFormats()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中org.pentaho.di.core.Const.getConversionFormats()方法的一些代码示例,展示了Const.getConversionFormats()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Const.getConversionFormats()方法的具体详情如下:
包路径:org.pentaho.di.core.Const
类名称:Const
方法名:getConversionFormats

Const.getConversionFormats介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

private String[] getComboValues( TableItem row, ColumnInfo colinfo ) {
 if ( colinfo.getType() == ColumnInfo.COLUMN_TYPE_FORMAT ) {
  int type = ValueMetaFactory.getIdForValueMeta( row.getText( colinfo.getFieldTypeColumn() ) );
  switch ( type ) {
   case ValueMetaInterface.TYPE_DATE:
    return Const.getDateFormats();
   case ValueMetaInterface.TYPE_INTEGER:
   case ValueMetaInterface.TYPE_BIGNUMBER:
   case ValueMetaInterface.TYPE_NUMBER:
    return Const.getNumberFormats();
   case ValueMetaInterface.TYPE_STRING:
    return Const.getConversionFormats();
   default:
    return new String[0];
  }
 }
 return colinfo.getComboValues();
}

代码示例来源:origin: pentaho/pentaho-kettle

new ColumnInfo( Messages.getString( "S3CsvInputDialog.NameColumn.Column" ),       ColumnInfo.COLUMN_TYPE_TEXT,    false ),
new ColumnInfo( Messages.getString( "S3CsvInputDialog.TypeColumn.Column" ),       ColumnInfo.COLUMN_TYPE_CCOMBO,  ValueMeta.getTypes(), true ),
new ColumnInfo( Messages.getString( "S3CsvInputDialog.FormatColumn.Column" ),     ColumnInfo.COLUMN_TYPE_CCOMBO,  Const.getConversionFormats() ),
new ColumnInfo( Messages.getString( "S3CsvInputDialog.LengthColumn.Column" ),     ColumnInfo.COLUMN_TYPE_TEXT,    false ),
new ColumnInfo( Messages.getString( "S3CsvInputDialog.PrecisionColumn.Column" ),  ColumnInfo.COLUMN_TYPE_TEXT,    false ),

代码示例来源:origin: pentaho/pentaho-kettle

new ColumnInfo(
 BaseMessages.getString( PKG, "LoadFileInputDialog.FieldsTable.Format.Column" ),
 ColumnInfo.COLUMN_TYPE_CCOMBO, Const.getConversionFormats() ),
new ColumnInfo(
 BaseMessages.getString( PKG, "LoadFileInputDialog.FieldsTable.Length.Column" ),

代码示例来源:origin: pentaho/pentaho-kettle

new ColumnInfo(
 BaseMessages.getString( PKG, "JsonInputDialog.FieldsTable.Format.Column" ),
 ColumnInfo.COLUMN_TYPE_CCOMBO, Const.getConversionFormats() ),
new ColumnInfo(
 BaseMessages.getString( PKG, "JsonInputDialog.FieldsTable.Length.Column" ),

相关文章