-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Moved Redis client options from Main command to subcommands
- Loading branch information
Showing
88 changed files
with
1,095 additions
and
2,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 30 additions & 30 deletions
60
connectors/riot-file/src/main/java/com/redis/riot/file/FileOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
package com.redis.riot.file; | ||
|
||
import com.redis.riot.file.resource.AbstractResourceItemWriter; | ||
import java.nio.charset.StandardCharsets; | ||
|
||
public class FileOptions { | ||
|
||
public static final String DEFAULT_ENCODING = AbstractResourceItemWriter.DEFAULT_CHARSET; | ||
public static final String DEFAULT_ENCODING = StandardCharsets.UTF_8.name(); | ||
|
||
private String encoding = DEFAULT_ENCODING; | ||
private String encoding = DEFAULT_ENCODING; | ||
|
||
private boolean gzipped; | ||
private boolean gzipped; | ||
|
||
private GoogleStorageOptions googleStorageOptions = new GoogleStorageOptions(); | ||
private GoogleStorageOptions googleStorageOptions = new GoogleStorageOptions(); | ||
|
||
private AmazonS3Options amazonS3Options = new AmazonS3Options(); | ||
private AmazonS3Options amazonS3Options = new AmazonS3Options(); | ||
|
||
public String getEncoding() { | ||
return encoding; | ||
} | ||
public String getEncoding() { | ||
return encoding; | ||
} | ||
|
||
public void setEncoding(String encoding) { | ||
this.encoding = encoding; | ||
} | ||
public void setEncoding(String encoding) { | ||
this.encoding = encoding; | ||
} | ||
|
||
public boolean isGzipped() { | ||
return gzipped; | ||
} | ||
public boolean isGzipped() { | ||
return gzipped; | ||
} | ||
|
||
public void setGzipped(boolean gzipped) { | ||
this.gzipped = gzipped; | ||
} | ||
public void setGzipped(boolean gzipped) { | ||
this.gzipped = gzipped; | ||
} | ||
|
||
public GoogleStorageOptions getGoogleStorageOptions() { | ||
return googleStorageOptions; | ||
} | ||
public GoogleStorageOptions getGoogleStorageOptions() { | ||
return googleStorageOptions; | ||
} | ||
|
||
public void setGoogleStorageOptions(GoogleStorageOptions googleStorageOptions) { | ||
this.googleStorageOptions = googleStorageOptions; | ||
} | ||
public void setGoogleStorageOptions(GoogleStorageOptions googleStorageOptions) { | ||
this.googleStorageOptions = googleStorageOptions; | ||
} | ||
|
||
public AmazonS3Options getAmazonS3Options() { | ||
return amazonS3Options; | ||
} | ||
public AmazonS3Options getAmazonS3Options() { | ||
return amazonS3Options; | ||
} | ||
|
||
public void setAmazonS3Options(AmazonS3Options amazonS3Options) { | ||
this.amazonS3Options = amazonS3Options; | ||
} | ||
public void setAmazonS3Options(AmazonS3Options amazonS3Options) { | ||
this.amazonS3Options = amazonS3Options; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...resource/FilenameInputStreamResource.java → ...iot/file/FilenameInputStreamResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t/file/resource/OutputStreamResource.java → ...redis/riot/file/OutputStreamResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ile/resource/UncustomizedUrlResource.java → ...is/riot/file/UncustomizedUrlResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.