Skip to content

Commit

Permalink
Allow to clear the setting values defined in table's PartitioningSett…
Browse files Browse the repository at this point in the history
…ings object
  • Loading branch information
zinal committed Jan 9, 2024
1 parent 0e20b2a commit 6d9c8e9
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,29 @@ public PartitioningSettings setMaxPartitionsCount(long partitionsCount) {
this.maxPartitionsCount = partitionsCount;
return this;
}

public PartitioningSettings clearPartitioningBySize() {
this.partitioningBySize = null;
return this;
}

public PartitioningSettings clearPartitioningByLoad() {
this.partitioningByLoad = null;
return this;
}

public PartitioningSettings clearPartitionSize() {
this.partitionSizeMb = null;
return this;
}

public PartitioningSettings clearMinPartitionsCount() {
this.minPartitionsCount = null;
return this;
}

public PartitioningSettings clearMaxPartitionsCount() {
this.maxPartitionsCount = null;
return this;
}
}

0 comments on commit 6d9c8e9

Please sign in to comment.