This is an automated email from the ASF dual-hosted git repository.
ptupitsyn 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 96979a64e6f IGNITE-28241 Add link to Ignite 2 docs to Ignite 3 section
(#7790)
96979a64e6f is described below
commit 96979a64e6fcea341eae66d1ff1a5efdc76a0ccb
Author: IgGusev <[email protected]>
AuthorDate: Fri Mar 20 13:37:11 2026 +0200
IGNITE-28241 Add link to Ignite 2 docs to Ignite 3 section (#7790)
---
docs/docs/develop/work-with-data/table-api.md | 19 ++++++++-----------
docs/docusaurus.config.ts | 5 +++++
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/docs/docs/develop/work-with-data/table-api.md
b/docs/docs/develop/work-with-data/table-api.md
index 484b37475b1..b2eabe3e10f 100644
--- a/docs/docs/develop/work-with-data/table-api.md
+++ b/docs/docs/develop/work-with-data/table-api.md
@@ -598,12 +598,11 @@ The following operators are supported in criterion
queries:
| `or` | Used to evaluate for at least one matching condition. |
`or(columnValue("City", equalTo("New York")), columnValue("Salary",
greaterThan(10000)))` |
-== Partition API
+## 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]:
+To retrieve a partition `id`, you need to pass the corresponding `key` value
and use the following
[method](https://ignite.apache.org/releases/ignite3/3.2.0/javadoc/org/apache/ignite/table/partition/PartitionDistribution.html#partition(org.apache.ignite.table.Tuple)):
-[source, java]
-----
+```java
Table table = client.tables().table("PUBLIC.Person");
RecordView<Tuple> personTableView = table.recordView();
@@ -613,15 +612,13 @@ 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.
+As `PartitionManager` API is now deprecated and will be removed in upcoming
releases, use `PartitionDistribution`
[API](https://ignite.apache.org/releases/ignite3/3.2.0/javadoc/org/apache/ignite/table/partition/PartitionDistribution.html#partition(org.apache.ignite.table.Tuple))
instead.
-[source, java]
-----
+```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
+For more details on data partitioning, see the [data partitions
article](/3.1.0/configure-and-operate/storage/data-partitioning).
\ No newline at end of file
diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts
index f125aa7d8ec..ff1a139f26d 100644
--- a/docs/docusaurus.config.ts
+++ b/docs/docusaurus.config.ts
@@ -132,6 +132,11 @@ const config: Config = {
type: 'search',
position: 'right',
},
+ {
+ href: 'https://ignite.apache.org/docs/ignite2/latest/',
+ label: 'Ignite 2',
+ position: 'right',
+ },
{
href: 'https://github.com/apache/ignite-3',
label: 'GitHub',