Skip to content

Commit

Permalink
Drop the --export-max-records flag (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
aymkhalil authored Apr 10, 2023
1 parent a185ed8 commit 2208081
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,6 @@ public List<ParameterDescriptor> parameters() {
.type(ParameterType.STRING)
.names(Arrays.asList("--export-consistency"))
.build());
parameters.add(
ParameterDescriptor.builder()
.description(
"The maximum number of records to export from the table. Must be a positive number or -1. "
+ "The default is -1 (export the entire table).")
.type(ParameterType.INTEGER)
.names(Arrays.asList("--export-max-records"))
.build());
parameters.add(
ParameterDescriptor.builder()
.description(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@ public char[] getPassword() {
defaultValue = "LOCAL_QUORUM")
public DefaultConsistencyLevel consistencyLevel = DefaultConsistencyLevel.LOCAL_QUORUM;

@Option(
names = "--export-max-records",
paramLabel = "NUM",
description =
"The maximum number of records to export from the table. Must be a positive number or -1. "
+ "The default is -1 (export the entire table).",
defaultValue = "-1")
public int maxRecords = -1;

@Option(
names = "--export-max-concurrent-files",
paramLabel = "NUM|AUTO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ private List<String> createExportArgs(String operationId) {
}
args.add("-url");
args.add(String.valueOf(tableDataDir));
args.add("-maxRecords");
args.add(String.valueOf(settings.exportSettings.maxRecords));
args.add("-maxConcurrentFiles");
args.add(settings.exportSettings.maxConcurrentFiles);
args.add("-maxConcurrentQueries");
Expand Down

0 comments on commit 2208081

Please sign in to comment.