本文整理汇总了Java中org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles类的典型用法代码示例。如果您正苦于以下问题:Java FileErrorHandlerMissingFiles类的具体用法?Java FileErrorHandlerMissingFiles怎么用?Java FileErrorHandlerMissingFiles使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileErrorHandlerMissingFiles类属于org.pentaho.di.trans.step.errorhandling包,在下文中一共展示了FileErrorHandlerMissingFiles类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initErrorHandling
import org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles; //导入依赖的package包/类
private void initErrorHandling()
{
List<FileErrorHandler> errorHandlers = new ArrayList<FileErrorHandler>(2);
if (meta.getLineNumberFilesDestinationDirectory() != null)
errorHandlers.add(new FileErrorHandlerContentLineNumber(getTrans().getCurrentDate(), meta.getLineNumberFilesDestinationDirectory(), meta.getLineNumberFilesExtension(), "Latin1", this));
if (meta.getErrorFilesDestinationDirectory() != null)
errorHandlers.add(new FileErrorHandlerMissingFiles(getTrans().getCurrentDate(), meta.getErrorFilesDestinationDirectory(), meta.getErrorFilesExtension(), "Latin1", this));
data.errorHandler = new CompositeFileErrorHandler(errorHandlers);
}
示例2: initErrorHandling
import org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles; //导入依赖的package包/类
private void initErrorHandling()
{
List<FileErrorHandler> dataErrorLineHandlers = new ArrayList<FileErrorHandler>(2);
if (meta.getLineNumberFilesDestinationDirectory() != null)
dataErrorLineHandlers.add(new FileErrorHandlerContentLineNumber(getTrans().getCurrentDate(), meta
.getLineNumberFilesDestinationDirectory(), meta.getLineNumberFilesExtension(), meta.getEncoding(), this));
if (meta.getErrorFilesDestinationDirectory() != null)
dataErrorLineHandlers.add(new FileErrorHandlerMissingFiles(getTrans().getCurrentDate(), meta.getErrorFilesDestinationDirectory(), meta
.getErrorLineFilesExtension(), meta.getEncoding(), this));
data.dataErrorLineHandler = new CompositeFileErrorHandler(dataErrorLineHandlers);
}
示例3: initErrorHandling
import org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles; //导入依赖的package包/类
private void initErrorHandling()
{
List<FileErrorHandler> errorHandlers = new ArrayList<FileErrorHandler>(2);
if (meta.getLineNumberFilesDestinationDirectory() != null)
errorHandlers.add(new FileErrorHandlerContentLineNumber(getTrans().getCurrentDate(), environmentSubstitute(meta.getLineNumberFilesDestinationDirectory()), meta.getLineNumberFilesExtension(), "Latin1", this));
if (meta.getErrorFilesDestinationDirectory() != null)
errorHandlers.add(new FileErrorHandlerMissingFiles(getTrans().getCurrentDate(), environmentSubstitute(meta.getErrorFilesDestinationDirectory()), meta.getErrorFilesExtension(), "Latin1", this));
data.errorHandler = new CompositeFileErrorHandler(errorHandlers);
}
示例4: initErrorHandling
import org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles; //导入依赖的package包/类
/**
* Initialize error handling.
*
* TODO: should we set charset for error files from content meta ? What about case for automatic charset ?
*/
private void initErrorHandling() {
List<FileErrorHandler> dataErrorLineHandlers = new ArrayList<FileErrorHandler>( 2 );
if ( meta.errorHandling.lineNumberFilesDestinationDirectory != null ) {
dataErrorLineHandlers.add( new FileErrorHandlerContentLineNumber( getTrans().getCurrentDate(),
environmentSubstitute( meta.errorHandling.lineNumberFilesDestinationDirectory ),
meta.errorHandling.lineNumberFilesExtension, meta.getEncoding(), this ) );
}
if ( meta.errorHandling.errorFilesDestinationDirectory != null ) {
dataErrorLineHandlers.add( new FileErrorHandlerMissingFiles( getTrans().getCurrentDate(), environmentSubstitute(
meta.errorHandling.errorFilesDestinationDirectory ), meta.errorHandling.errorFilesExtension, meta
.getEncoding(), this ) );
}
data.dataErrorLineHandler = new CompositeFileErrorHandler( dataErrorLineHandlers );
}
示例5: initErrorHandling
import org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles; //导入依赖的package包/类
private void initErrorHandling() {
List<FileErrorHandler> errorHandlers = new ArrayList<FileErrorHandler>( 2 );
if ( meta.getLineNumberFilesDestinationDirectory() != null ) {
errorHandlers.add( new FileErrorHandlerContentLineNumber(
getTrans().getCurrentDate(), environmentSubstitute( meta.getLineNumberFilesDestinationDirectory() ),
meta.getLineNumberFilesExtension(), "Latin1", this ) );
}
if ( meta.getErrorFilesDestinationDirectory() != null ) {
errorHandlers.add( new FileErrorHandlerMissingFiles(
getTrans().getCurrentDate(), environmentSubstitute( meta.getErrorFilesDestinationDirectory() ), meta
.getErrorFilesExtension(), "Latin1", this ) );
}
data.errorHandler = new CompositeFileErrorHandler( errorHandlers );
}
示例6: initErrorHandling
import org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles; //导入依赖的package包/类
private void initErrorHandling() {
List<FileErrorHandler> dataErrorLineHandlers = new ArrayList<FileErrorHandler>( 2 );
if ( meta.getLineNumberFilesDestinationDirectory() != null ) {
dataErrorLineHandlers
.add( new FileErrorHandlerContentLineNumber( getTrans().getCurrentDate(), environmentSubstitute( meta
.getLineNumberFilesDestinationDirectory() ), meta.getLineNumberFilesExtension(), meta.getEncoding(), this ) );
}
if ( meta.getErrorFilesDestinationDirectory() != null ) {
dataErrorLineHandlers.add( new FileErrorHandlerMissingFiles( getTrans().getCurrentDate(), environmentSubstitute(
meta.getErrorFilesDestinationDirectory() ), meta.getErrorLineFilesExtension(), meta.getEncoding(), this ) );
}
data.dataErrorLineHandler = new CompositeFileErrorHandler( dataErrorLineHandlers );
}