From 0ca75710c5a844d914bf962d2c995112b338c192 Mon Sep 17 00:00:00 2001 From: Maksim Zinal Date: Tue, 9 Jan 2024 15:56:24 +0300 Subject: [PATCH] Allow to clear the settings defined in table's PartitioningSettings (#213) Allow to clear the setting values defined in table's PartitioningSettings object --- .../table/settings/PartitioningSettings.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/table/src/main/java/tech/ydb/table/settings/PartitioningSettings.java b/table/src/main/java/tech/ydb/table/settings/PartitioningSettings.java index 7d6e694ee..966d62615 100644 --- a/table/src/main/java/tech/ydb/table/settings/PartitioningSettings.java +++ b/table/src/main/java/tech/ydb/table/settings/PartitioningSettings.java @@ -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; + } }