本文整理汇总了Java中org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta.setSeparator方法的典型用法代码示例。如果您正苦于以下问题:Java TextFileOutputMeta.setSeparator方法的具体用法?Java TextFileOutputMeta.setSeparator怎么用?Java TextFileOutputMeta.setSeparator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta
的用法示例。
在下文中一共展示了TextFileOutputMeta.setSeparator方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInfo
import org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta; //导入方法依赖的package包/类
private void getInfo(TextFileOutputMeta tfoi)
{
tfoi.setFileName( wFilename.getText() );
tfoi.setFileAsCommand( wFileIsCommand.getSelection() );
tfoi.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
tfoi.setFileFormat( wFormat.getText() );
tfoi.setFileCompression( wCompression.getText() );
tfoi.setEncoding( wEncoding.getText() );
tfoi.setSeparator( wSeparator.getText() );
tfoi.setEnclosure( wEnclosure.getText() );
tfoi.setExtension( wExtension.getText() );
tfoi.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
tfoi.setEndedLine( wEndedLine.getText() );
tfoi.setFileNameField( wFileNameField.getText() );
tfoi.setFileNameInField( wFileNameInField.getSelection() );
tfoi.setEnclosureForced( wEnclForced.getSelection() );
tfoi.setHeaderEnabled( wHeader.getSelection() );
tfoi.setFooterEnabled( wFooter.getSelection() );
tfoi.setFileAppended( wAppend.getSelection() );
tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
tfoi.setPartNrInFilename( wAddPartnr.getSelection() );
tfoi.setDateInFilename( wAddDate.getSelection() );
tfoi.setTimeInFilename( wAddTime.getSelection() );
tfoi.setDateTimeFormat(wDateTimeFormat.getText());
tfoi.setSpecifyingFormat(wSpecifyFormat.getSelection());
tfoi.setPadded( wPad.getSelection() );
tfoi.setAddToResultFiles( wAddToResult.getSelection() );
tfoi.setFastDump( wFastDump.getSelection() );
int i;
//Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
tfoi.allocate(nrfields);
for (i=0;i<nrfields;i++)
{
TextFileField field = new TextFileField();
TableItem item = wFields.getNonEmpty(i);
field.setName( item.getText(1) );
field.setType( item.getText(2) );
field.setFormat( item.getText(3) );
field.setLength( Const.toInt(item.getText(4), -1) );
field.setPrecision( Const.toInt(item.getText(5), -1) );
field.setCurrencySymbol( item.getText(6) );
field.setDecimalSymbol( item.getText(7) );
field.setGroupingSymbol( item.getText(8) );
field.setTrimType( ValueMeta.getTrimTypeByDesc(item.getText(9)));
field.setNullString( item.getText(10) );
tfoi.getOutputFields()[i] = field;
}
}
示例2: getInfo
import org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta; //导入方法依赖的package包/类
private void getInfo(TextFileOutputMeta tfoi)
{
tfoi.setFileName( wFilename.getText() );
tfoi.setFileAsCommand( wFileIsCommand.getSelection() );
tfoi.setServletOutput(wServletOutput.getSelection() );
tfoi.setCreateParentFolder(wCreateParentFolder.getSelection() );
tfoi.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
tfoi.setFileFormat( TextFileOutputMeta.formatMapperLineTerminator[wFormat.getSelectionIndex()] );
tfoi.setFileCompression( wCompression.getText() );
tfoi.setEncoding( wEncoding.getText() );
tfoi.setSeparator( wSeparator.getText() );
tfoi.setEnclosure( wEnclosure.getText() );
tfoi.setExtension( wExtension.getText() );
tfoi.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
tfoi.setEndedLine( wEndedLine.getText() );
tfoi.setFileNameField( wFileNameField.getText() );
tfoi.setFileNameInField( wFileNameInField.getSelection() );
tfoi.setEnclosureForced( wEnclForced.getSelection() );
tfoi.setEnclosureFixDisabled( wDisableEnclosureFix.getSelection() );
tfoi.setHeaderEnabled( wHeader.getSelection() );
tfoi.setFooterEnabled( wFooter.getSelection() );
tfoi.setFileAppended( wAppend.getSelection() );
tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
tfoi.setPartNrInFilename( wAddPartnr.getSelection() );
tfoi.setDateInFilename( wAddDate.getSelection() );
tfoi.setTimeInFilename( wAddTime.getSelection() );
tfoi.setDateTimeFormat(wDateTimeFormat.getText());
tfoi.setSpecifyingFormat(wSpecifyFormat.getSelection());
tfoi.setPadded( wPad.getSelection() );
tfoi.setAddToResultFiles( wAddToResult.getSelection() );
tfoi.setFastDump( wFastDump.getSelection() );
int i;
//Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
tfoi.allocate(nrfields);
for (i=0;i<nrfields;i++)
{
TextFileField field = new TextFileField();
TableItem item = wFields.getNonEmpty(i);
field.setName( item.getText(1) );
field.setType( item.getText(2) );
field.setFormat( item.getText(3) );
field.setLength( Const.toInt(item.getText(4), -1) );
field.setPrecision( Const.toInt(item.getText(5), -1) );
field.setCurrencySymbol( item.getText(6) );
field.setDecimalSymbol( item.getText(7) );
field.setGroupingSymbol( item.getText(8) );
field.setTrimType( ValueMeta.getTrimTypeByDesc(item.getText(9)));
field.setNullString( item.getText(10) );
tfoi.getOutputFields()[i] = field;
}
}
示例3: saveInfoInMeta
import org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta; //导入方法依赖的package包/类
private void saveInfoInMeta( TextFileOutputMeta tfoi ) {
tfoi.setFileName( wFilename.getText() );
tfoi.setFileAsCommand( wFileIsCommand.getSelection() );
tfoi.setServletOutput( wServletOutput.getSelection() );
tfoi.setCreateParentFolder( wCreateParentFolder.getSelection() );
tfoi.setDoNotOpenNewFileInit( wDoNotOpenNewFileInit.getSelection() );
tfoi.setFileFormat( TextFileOutputMeta.formatMapperLineTerminator[wFormat.getSelectionIndex()] );
tfoi.setFileCompression( wCompression.getText() );
tfoi.setEncoding( wEncoding.getText() );
tfoi.setSeparator( wSeparator.getText() );
tfoi.setEnclosure( wEnclosure.getText() );
tfoi.setExtension( wExtension.getText() );
tfoi.setSplitEvery( Const.toInt( wSplitEvery.getText(), 0 ) );
tfoi.setEndedLine( wEndedLine.getText() );
tfoi.setFileNameField( wFileNameField.getText() );
tfoi.setFileNameInField( wFileNameInField.getSelection() );
tfoi.setEnclosureForced( wEnclForced.getSelection() );
tfoi.setEnclosureFixDisabled( wDisableEnclosureFix.getSelection() );
tfoi.setHeaderEnabled( wHeader.getSelection() );
tfoi.setFooterEnabled( wFooter.getSelection() );
tfoi.setFileAppended( wAppend.getSelection() );
tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
tfoi.setPartNrInFilename( wAddPartnr.getSelection() );
tfoi.setDateInFilename( wAddDate.getSelection() );
tfoi.setTimeInFilename( wAddTime.getSelection() );
tfoi.setDateTimeFormat( wDateTimeFormat.getText() );
tfoi.setSpecifyingFormat( wSpecifyFormat.getSelection() );
tfoi.setPadded( wPad.getSelection() );
tfoi.setAddToResultFiles( wAddToResult.getSelection() );
tfoi.setFastDump( wFastDump.getSelection() );
int i;
// Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
tfoi.allocate( nrfields );
for ( i = 0; i < nrfields; i++ ) {
TextFileField field = new TextFileField();
TableItem item = wFields.getNonEmpty( i );
field.setName( item.getText( 1 ) );
field.setType( item.getText( 2 ) );
field.setFormat( item.getText( 3 ) );
field.setLength( Const.toInt( item.getText( 4 ), -1 ) );
field.setPrecision( Const.toInt( item.getText( 5 ), -1 ) );
field.setCurrencySymbol( item.getText( 6 ) );
field.setDecimalSymbol( item.getText( 7 ) );
field.setGroupingSymbol( item.getText( 8 ) );
field.setTrimType( ValueMetaString.getTrimTypeByDesc( item.getText( 9 ) ) );
field.setNullString( item.getText( 10 ) );
//CHECKSTYLE:Indentation:OFF
tfoi.getOutputFields()[i] = field;
}
}