Package org.pentaho.di.resource
Class SequenceResourceNaming
java.lang.Object
org.pentaho.di.resource.SimpleResourceNaming
org.pentaho.di.resource.SequenceResourceNaming
- All Implemented Interfaces:
ResourceNamingInterface
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFileNameUniqueIdentifier
(String filename, String extension) Methods inherited from class org.pentaho.di.resource.SimpleResourceNaming
fixFileName, fixPath, getDirectoryMap, getFileSystemPrefix, getParameterNr, getUseOriginalPathInTargetName, nameResource, nameResource, setDirectoryMap, setFileSystemPrefix, setUseOriginalPathInTargetName
-
Constructor Details
-
SequenceResourceNaming
public SequenceResourceNaming()
-
-
Method Details
-
getFileNameUniqueIdentifier
- Overrides:
getFileNameUniqueIdentifier
in classSimpleResourceNaming
-