This is an automated email from the ASF dual-hosted git repository.
sk0x50 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new f94bbf4b397 IGNITE-27692 Partitions API doc improvement (#7497)
f94bbf4b397 is described below
commit f94bbf4b39789bb473ede3da633a4d6da6967a6e
Author: jinxxxoid <[email protected]>
AuthorDate: Tue Feb 17 00:46:20 2026 +0400
IGNITE-27692 Partitions API doc improvement (#7497)
---
docs/docs/develop/work-with-data/table-api.md | 29 +++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/docs/docs/develop/work-with-data/table-api.md
b/docs/docs/develop/work-with-data/table-api.md
index 7f35832e368..484b37475b1 100644
--- a/docs/docs/develop/work-with-data/table-api.md
+++ b/docs/docs/develop/work-with-data/table-api.md
@@ -596,3 +596,32 @@ The following operators are supported in criterion queries:
| `not` | Negates the condition. | `not(columnValue("City", equalTo("New
York")))` |
| `and` | Used to evaluate multiple conditions at the same time. |
`and(columnValue("City", equalTo("New York")), columnValue("Salary",
greaterThan(10000)))` |
| `or` | Used to evaluate for at least one matching condition. |
`or(columnValue("City", equalTo("New York")), columnValue("Salary",
greaterThan(10000)))` |
+
+
+== Partition API
+
+To retrieve a partition `id`, you need to pass the corresponding `key` value
and use the following
link:https://ignite.apache.org/releases/ignite3/3.2.0/javadoc/org/apache/ignite/table/partition/PartitionDistribution.html#partition(org.apache.ignite.table.Tuple)[method]:
+
+[source, java]
+----
+Table table = client.tables().table("PUBLIC.Person");
+RecordView<Tuple> personTableView = table.recordView();
+
+personTableView.upsert(null, Tuple.create().set("id", 1).set("name", "John
Doe"));
+
+PartitionDistribution partDistribution = table.partitionDistribution();
+Partition partition =
table.partitionDistribution().partitionAsync(Tuple.create().set("id",
1)).join();
+
+long partitionId = partition.id();
+----
+
+As `PartitionManager` API is now deprecated and will be removed in upcoming
releases, use `PartitionDistribution`
+link:https://ignite.apache.org/releases/ignite3/3.2.0/javadoc/org/apache/ignite/table/partition/PartitionDistribution.html#partition(org.apache.ignite.table.Tuple)[API]
instead.
+
+[source, java]
+----
+Table table = client.tables().table(YOUR_TABLE_NAME);
+PartitionDistribution partDistribution = table.partitionDistribution();
+----
+
+For more details on data partitioning, see the following
link:administrators-guide/storage/data-partitions[article].
\ No newline at end of file