Package org.pentaho.di.resource
Class SequenceResourceNaming
- java.lang.Object
-
- org.pentaho.di.resource.SimpleResourceNaming
-
- org.pentaho.di.resource.SequenceResourceNaming
-
- All Implemented Interfaces:
ResourceNamingInterface
public class SequenceResourceNaming extends SimpleResourceNaming
With this resource naming scheme we try to keep the original filename. However, if there are multiple files with the same name, we add a sequence nr starting at 2. For example : Load orders.ktr Load orders 2.ktr Load orders 3.ktr etc.- Author:
- matt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.di.resource.ResourceNamingInterface
ResourceNamingInterface.FileNamingType
-
-
Constructor Summary
Constructors Constructor Description SequenceResourceNaming()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getFileNameUniqueIdentifier(String filename, String extension)
-
Methods inherited from class org.pentaho.di.resource.SimpleResourceNaming
fixFileName, fixPath, getDirectoryMap, getFileSystemPrefix, getUseOriginalPathInTargetName, nameResource, nameResource, setDirectoryMap, setFileSystemPrefix, setUseOriginalPathInTargetName
-
-
-
-
Method Detail
-
getFileNameUniqueIdentifier
protected String getFileNameUniqueIdentifier(String filename, String extension)
- Overrides:
getFileNameUniqueIdentifier
in classSimpleResourceNaming
-
-