protected String getOutputFilename( FlowProcess<? extends Properties> flowProcess ) { int partNum = flowProcess.getIntegerProperty( PartitionTap.PART_NUM_PROPERTY, -1 ); String outputFileBasename = getOutputFileBasename(); if( partNum != -1 ) outputFileBasename = String.format( "%s.%05d", outputFileBasename, partNum ); if( getScheme() instanceof FileFormat ) return outputFileBasename + "." + ( (FileFormat) getScheme() ).getExtension(); return outputFileBasename; }
return new TupleEntrySchemeIterator<Properties, InputStream>( flowProcess, this, getScheme(), iterator, () -> flowProcess.getFlowProcessContext().getSourcePath() );