Package com.exasol.spark.s3
Class UUIDS3BucketKeyPathProvider
- java.lang.Object
-
- com.exasol.spark.s3.UUIDS3BucketKeyPathProvider
-
- All Implemented Interfaces:
S3BucketKeyPathProvider
public class UUIDS3BucketKeyPathProvider extends Object implements S3BucketKeyPathProvider
An implementation ofS3BucketKeyPathProvider
that usesUUID
prefixes for intermediate write path. It createsS3
write path as following<randomUUID>-<sparkApplicationId>/<sparkQueryId>
.
-
-
Constructor Summary
Constructors Constructor Description UUIDS3BucketKeyPathProvider(String applicationId)
Creates a new instance ofUUIDS3BucketKeyPathProvider
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getS3BucketKeyForWriteLocation(String queryId)
Returns anS3
bucket key path for writing intermediate data.
-
-
-
Constructor Detail
-
UUIDS3BucketKeyPathProvider
public UUIDS3BucketKeyPathProvider(String applicationId)
Creates a new instance ofUUIDS3BucketKeyPathProvider
.- Parameters:
applicationId
- Spark application identifier
-
-
Method Detail
-
getS3BucketKeyForWriteLocation
public String getS3BucketKeyForWriteLocation(String queryId)
Description copied from interface:S3BucketKeyPathProvider
Returns anS3
bucket key path for writing intermediate data.- Specified by:
getS3BucketKeyForWriteLocation
in interfaceS3BucketKeyPathProvider
- Parameters:
queryId
- Spark query identifier that started the write job- Returns:
S3
bucket key path for intermediate data
-
-