Class UploadAlwaysStrategy
- java.lang.Object
-
- com.exasol.bucketfs.uploadnecessity.UploadAlwaysStrategy
-
- All Implemented Interfaces:
UploadNecessityCheckStrategy
public class UploadAlwaysStrategy extends Object implements UploadNecessityCheckStrategy
ThisUploadNecessityCheckStrategyalways decides to upload the file.
-
-
Constructor Summary
Constructors Constructor Description UploadAlwaysStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUploadNecessary(Path file, String fullFileNameInBucketFs, ReadOnlyBucket bucket)Decide if it is necessary to upload a file to BucketFS.
-
-
-
Method Detail
-
isUploadNecessary
public boolean isUploadNecessary(Path file, String fullFileNameInBucketFs, ReadOnlyBucket bucket)
Description copied from interface:UploadNecessityCheckStrategyDecide if it is necessary to upload a file to BucketFS.- Specified by:
isUploadNecessaryin interfaceUploadNecessityCheckStrategy- Parameters:
file- local filefullFileNameInBucketFs- path to the file in BucketFSbucket- bucket the file is uploaded to- Returns:
trueif the file should get uploaded
-
-