You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vk...@apache.org on 2021/10/06 20:03:22 UTC
[ignite-3] 02/02: IGNITE-15685 - Renamed examples to make them
consistent with the updated API (#382)
This is an automated email from the ASF dual-hosted git repository.
vkulichenko pushed a commit to branch ignite-3.0.0-alpha3
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit 47ea2cf00520d2da16fe0ffac2a151f99d70e057
Author: Valentin Kulichenko <va...@gmail.com>
AuthorDate: Wed Oct 6 12:52:39 2021 -0700
IGNITE-15685 - Renamed examples to make them consistent with the updated API (#382)
---
assembly/README.md | 4 ++--
docs/_docs/quick-start/getting-started-guide.adoc | 4 ++--
examples/README.md | 4 ++--
...yValueBinaryViewExample.java => KeyValueViewExample.java} | 2 +-
.../table/{TableExample.java => RecordViewExample.java} | 2 +-
.../org/apache/ignite/example/table/TableExamplesTest.java | 12 ++++++------
6 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/assembly/README.md b/assembly/README.md
index 982f40b..a8f63fb 100644
--- a/assembly/README.md
+++ b/assembly/README.md
@@ -37,8 +37,8 @@ Examples are shipped as a separate Maven project, which is located in the `examp
To start running you simply need to import provided `pom.xml` file into your favourite IDE.
The following examples are included:
-* `TableExample` - demonstrates the usage of the `org.apache.ignite.table.Table` API
-* `KeyValueBinaryViewExample` - demonstrates the usage of the `org.apache.ignite.table.KeyValueView` API
+* `RecordViewExample` - demonstrates the usage of the `org.apache.ignite.table.RecordView` API
+* `KeyValueViewExample` - demonstrates the usage of the `org.apache.ignite.table.KeyValueView` API
To run an example, do the following:
1. Import the examples project into you IDE.
diff --git a/docs/_docs/quick-start/getting-started-guide.adoc b/docs/_docs/quick-start/getting-started-guide.adoc
index 5b7e527..3b5d084 100644
--- a/docs/_docs/quick-start/getting-started-guide.adoc
+++ b/docs/_docs/quick-start/getting-started-guide.adoc
@@ -186,8 +186,8 @@ Ignite 3.0 alpha 2 comes with examples that are configured as a separate Maven p
The project includes the following examples:
-* `TableExample` demonstrates the usage of the `org.apache.ignite.table.Table` API to create a table. It also shows how to get data from a table, or insert a line into a table.
-* `KeyValueBinaryViewExample` - demonstrates the usage of the `org.apache.ignite.table.KeyValueView` API to insert a line into a table.
+* `RecordViewExample` demonstrates the usage of the `org.apache.ignite.table.RecordView` API to create a table. It also shows how to get data from a table, or insert a line into a table.
+* `KeyValueViewExample` - demonstrates the usage of the `org.apache.ignite.table.KeyValueView` API to insert a line into a table.
To run an example:
diff --git a/examples/README.md b/examples/README.md
index ad4d977..fa843c0 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -6,8 +6,8 @@ Examples are shipped as a separate Maven project, so to start running you simply
to import provided `pom.xml` file into your favourite IDE.
The following examples are included:
-* `TableExample` - demonstrates the usage of the `org.apache.ignite.table.Table` API
-* `KeyValueBinaryViewExample` - demonstrates the usage of the `org.apache.ignite.table.KeyValueView` API
+* `RecordViewExample` - demonstrates the usage of the `org.apache.ignite.table.RecordView` API
+* `KeyValueViewExample` - demonstrates the usage of the `org.apache.ignite.table.KeyValueView` API
To run an example, do the following:
1. Import the examples project into you IDE.
diff --git a/examples/src/main/java/org/apache/ignite/example/table/KeyValueBinaryViewExample.java b/examples/src/main/java/org/apache/ignite/example/table/KeyValueViewExample.java
similarity index 99%
rename from examples/src/main/java/org/apache/ignite/example/table/KeyValueBinaryViewExample.java
rename to examples/src/main/java/org/apache/ignite/example/table/KeyValueViewExample.java
index 7ec8492..29a111e 100644
--- a/examples/src/main/java/org/apache/ignite/example/table/KeyValueBinaryViewExample.java
+++ b/examples/src/main/java/org/apache/ignite/example/table/KeyValueViewExample.java
@@ -44,7 +44,7 @@ import org.apache.ignite.table.Tuple;
* <li>Run the example in the IDE.</li>
* </ol>
*/
-public class KeyValueBinaryViewExample {
+public class KeyValueViewExample {
public static void main(String[] args) throws Exception {
try (Ignite ignite = IgnitionManager.start(
"node-0",
diff --git a/examples/src/main/java/org/apache/ignite/example/table/TableExample.java b/examples/src/main/java/org/apache/ignite/example/table/RecordViewExample.java
similarity index 99%
rename from examples/src/main/java/org/apache/ignite/example/table/TableExample.java
rename to examples/src/main/java/org/apache/ignite/example/table/RecordViewExample.java
index ba2ea58..2dbe913 100644
--- a/examples/src/main/java/org/apache/ignite/example/table/TableExample.java
+++ b/examples/src/main/java/org/apache/ignite/example/table/RecordViewExample.java
@@ -44,7 +44,7 @@ import org.apache.ignite.table.Tuple;
* <li>Run the example in the IDE.</li>
* </ol>
*/
-public class TableExample {
+public class RecordViewExample {
public static void main(String[] args) throws Exception {
try (Ignite ignite = IgnitionManager.start(
"node-0",
diff --git a/examples/src/test/java/org/apache/ignite/example/table/TableExamplesTest.java b/examples/src/test/java/org/apache/ignite/example/table/TableExamplesTest.java
index ba88683..e3db749 100644
--- a/examples/src/test/java/org/apache/ignite/example/table/TableExamplesTest.java
+++ b/examples/src/test/java/org/apache/ignite/example/table/TableExamplesTest.java
@@ -32,23 +32,23 @@ public class TableExamplesTest {
protected static final String[] EMPTY_ARGS = new String[0];
/**
- * Runs TableExample.
+ * Runs RecordViewExample.
*
* @throws Exception If failed.
*/
@Test
- public void testTableExample() throws Exception {
- TableExample.main(EMPTY_ARGS);
+ public void testRecordViewExample() throws Exception {
+ RecordViewExample.main(EMPTY_ARGS);
}
/**
- * Runs KeyValueBinaryViewExample.
+ * Runs KeyValueViewExample.
*
* @throws Exception If failed.
*/
@Test
- public void testKeyValueBinaryViewExample() throws Exception {
- KeyValueBinaryViewExample.main(EMPTY_ARGS);
+ public void testKeyValueViewExample() throws Exception {
+ KeyValueViewExample.main(EMPTY_ARGS);
}
/**