本文整理了Java中org.pentaho.di.trans.steps.yamlinput.YamlInputMeta.allocate()
方法的一些代码示例,展示了YamlInputMeta.allocate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlInputMeta.allocate()
方法的具体详情如下:
包路径:org.pentaho.di.trans.steps.yamlinput.YamlInputMeta
类名称:YamlInputMeta
方法名:allocate
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void modify( StepMetaInterface someMeta ) {
if ( someMeta instanceof YamlInputMeta ) {
( (YamlInputMeta) someMeta ).allocate( 5, 5 );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public Object clone() {
YamlInputMeta retval = (YamlInputMeta) super.clone();
int nrFiles = fileName.length;
int nrFields = inputFields.length;
retval.allocate( nrFiles, nrFields );
System.arraycopy( fileName, 0, retval.fileName, 0, nrFiles );
System.arraycopy( fileMask, 0, retval.fileMask, 0, nrFiles );
System.arraycopy( fileRequired, 0, retval.fileRequired, 0, nrFiles );
System.arraycopy( includeSubFolders, 0, retval.includeSubFolders, 0, nrFiles );
for ( int i = 0; i < nrFields; i++ ) {
if ( inputFields[i] != null ) {
retval.inputFields[i] = (YamlInputField) inputFields[i].clone();
}
}
return retval;
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void setDefault() {
IsIgnoreEmptyFile = false;
doNotFailIfNoFile = true;
includeFilename = false;
filenameField = "";
includeRowNumber = false;
rowNumberField = "";
IsAFile = false;
addResultFile = false;
validating = false;
int nrFiles = 0;
int nrFields = 0;
allocate( nrFiles, nrFields );
for ( int i = 0; i < nrFiles; i++ ) {
fileName[i] = "filename" + ( i + 1 );
fileMask[i] = "";
fileRequired[i] = RequiredFilesCode[0];
includeSubFolders[i] = RequiredFilesCode[0];
}
for ( int i = 0; i < nrFields; i++ ) {
inputFields[i] = new YamlInputField( "field" + ( i + 1 ) );
}
rowLimit = 0;
inFields = false;
yamlField = "";
}
代码示例来源:origin: pentaho/pentaho-kettle
int nrFields = XMLHandler.countNodes( fields, "field" );
allocate( nrFiles, nrFields );
代码示例来源:origin: pentaho/pentaho-kettle
int nrFields = wFields.nrNonEmpty();
in.allocate( nrFiles, nrFields );
in.setFileName( wFilenameList.getItems( 0 ) );
in.setFileMask( wFilenameList.getItems( 1 ) );
代码示例来源:origin: pentaho/pentaho-kettle
int nrFields = rep.countNrStepAttributes( id_step, "field_name" );
allocate( nrFiles, nrFields );
内容来源于网络,如有侵权,请联系作者删除!