Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ public interface CustomExportWriteOptions {
/**
* @since 2.1.1
*/
CustomExportWriteOptions s3AnonymousAccess();
default CustomExportWriteOptions s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}
Comment on lines +29 to +32

CustomExportWriteOptions s3AccessKeyId(String accessKeyId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ interface CustomReadOptions {
/**
* @since 2.1.1
*/
CustomReadOptions s3AnonymousAccess();
default CustomReadOptions s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}

CustomReadOptions s3AccessKeyId(String accessKeyId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public interface Executor<T extends Executor> {
* @return instance of this executor
* @since 2.1.1
*/
T connectionStringBasic(String connectionString);
default T connectionStringBasic(String connectionString) {
// Default implementation for backwards compatibility.
return connectionString(connectionString);
}
Comment on lines +52 to +55

/**
* Limit the number of records read from the executor's data source.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ interface WriteGenericFilesOptions {
/**
* @since 2.1.1
*/
WriteGenericFilesOptions s3AnonymousAccess();
default WriteGenericFilesOptions s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}

WriteGenericFilesOptions s3AccessKeyId(String accessKeyId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public interface ReadFilesOptions<T extends ReadFilesOptions> {
/**
* @since 2.1.1
*/
T s3AnonymousAccess();
default T s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}

T s3AccessKeyId(String accessKeyId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public interface WriteFilesOptions<T extends WriteFilesOptions> {
/**
* @since 2.1.1
*/
T s3AnonymousAccess();
default T s3AnonymousAccess() {
// Default implementation for backwards compatibility.
throw new UnsupportedOperationException("S3 anonymous access is not supported in this implementation");
}
Comment on lines +26 to +29

T s3Endpoint(String endpoint);

Expand Down
Loading