examples description

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/711d62d3
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/711d62d3
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/711d62d3

Branch: refs/heads/ignite-7777
Commit: 711d62d374948c9e4092a3e1479cf70615c478aa
Parents: a216635
Author: ekaterina-nbl <[email protected]>
Authored: Thu May 10 14:27:23 2018 +0300
Committer: ekaterina-nbl <[email protected]>
Committed: Thu May 10 14:27:23 2018 +0300

----------------------------------------------------------------------
 .../platforms/nodejs/examples/AuthTlsExample.js  | 14 ++++++++------
 .../nodejs/examples/CachePutGetExample.js        | 19 ++++++++++---------
 modules/platforms/nodejs/examples/README.md      |  2 +-
 .../nodejs/examples/SqlDataProcessingExample.js  | 10 ++++++----
 .../platforms/nodejs/examples/SqlQueryExample.js | 11 ++++++-----
 5 files changed, 31 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/711d62d3/modules/platforms/nodejs/examples/AuthTlsExample.js
----------------------------------------------------------------------
diff --git a/modules/platforms/nodejs/examples/AuthTlsExample.js 
b/modules/platforms/nodejs/examples/AuthTlsExample.js
index c1c0c3b..4c958e0 100644
--- a/modules/platforms/nodejs/examples/AuthTlsExample.js
+++ b/modules/platforms/nodejs/examples/AuthTlsExample.js
@@ -34,12 +34,14 @@ const TLS_CA_FILE_NAME = './certs/ca.crt';
 
 const CACHE_NAME = 'AuthTlsExample_cache';
 
-// This example demonstrates secure connection to Ignite server and 
username/password authentication,
-// as well as basic cache put and get operations for primitive types.
-// - connects to ENDPOINT node
-// - creates CACHE_NAME cache if it doesn't exist
-//   -- specifies key and value type of the cache
-// - executes cache put and get operations
+// This example demonstrates how to establish a secure connection to an Ignite 
node and use username/password authentication,
+// as well as basic Key-Value Queries operations for primitive types:
+// - connects to a node using TLS and providing username/password
+// - creates a cache, if it doesn't exist
+//   - specifies key and value type of the cache
+// - put data of primitive types into the cache
+// - get data from the cache
+// - destroys the cache
 class AuthTlsExample {
 
     async start() {

http://git-wip-us.apache.org/repos/asf/ignite/blob/711d62d3/modules/platforms/nodejs/examples/CachePutGetExample.js
----------------------------------------------------------------------
diff --git a/modules/platforms/nodejs/examples/CachePutGetExample.js 
b/modules/platforms/nodejs/examples/CachePutGetExample.js
index ab5f85b..8ea642e 100644
--- a/modules/platforms/nodejs/examples/CachePutGetExample.js
+++ b/modules/platforms/nodejs/examples/CachePutGetExample.js
@@ -46,16 +46,17 @@ class Person {
     }
 }
 
-// This example demonstrates basic Cache, Key-Value Queries operations and 
ScanQuery.
-// - connects to ENDPOINT node
-// - creates CACHE_NAME cache if it doesn't exist
-//   -- specifies key type as TYPE_CODE.INTEGER
+// This example demonstrates basic Cache, Key-Value Queries and Scan Query 
operations:
+// - connects to a node
+// - creates a cache, if it doesn't exist
+//   - specifies key type as Integer
 // - executes different cache operations with Complex Objects and Binary 
Objects
-//   -- put several objects in parallel
-//   -- putAll
-//   -- get
-//   -- getAll
-//   -- ScanQuery
+//   - put several objects in parallel
+//   - putAll
+//   - get
+//   - getAll
+//   - ScanQuery
+// - destroys the cache
 class CachePutGetExample {
 
     constructor() {

http://git-wip-us.apache.org/repos/asf/ignite/blob/711d62d3/modules/platforms/nodejs/examples/README.md
----------------------------------------------------------------------
diff --git a/modules/platforms/nodejs/examples/README.md 
b/modules/platforms/nodejs/examples/README.md
index cbf7357..e6fc85b 100644
--- a/modules/platforms/nodejs/examples/README.md
+++ b/modules/platforms/nodejs/examples/README.md
@@ -27,7 +27,7 @@ Source: [SqlQueryExample.js](./SqlQueryExample.js)
 This example demonstrates basic Cache, Key-Value Queries and SQL Query 
operations:
 - connects to a node
 - creates a cache from CacheConfiguration, if it doesn't exist
-- writes data of primitive types into the cache using Key-Value put operation
+- writes data of primitive and Complex Object types into the cache using 
Key-Value put operation
 - reads data from the cache using SQL Query
 - destroys the cache
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/711d62d3/modules/platforms/nodejs/examples/SqlDataProcessingExample.js
----------------------------------------------------------------------
diff --git a/modules/platforms/nodejs/examples/SqlDataProcessingExample.js 
b/modules/platforms/nodejs/examples/SqlDataProcessingExample.js
index 097be53..a3fe0e9 100644
--- a/modules/platforms/nodejs/examples/SqlDataProcessingExample.js
+++ b/modules/platforms/nodejs/examples/SqlDataProcessingExample.js
@@ -30,13 +30,15 @@ const CITY_CACHE_NAME = 'City';
 const COUNTRY_LANGUAGE_CACHE_NAME = 'CountryLng';
 const DUMMY_CACHE_NAME = 'SqlDataProcessing_Dummy';
 
-// This example demonstrates basic SQL Fields query operations.
-// - connects to ENDPOINT node
+// This example demonstrates basic SQL Fields Query operations:
+// - connects to a node
+// - creates a cache, if it doesn't exist
 // - creates tables (CREATE TABLE)
 // - creates indices (CREATE INDEX)
-// - writes data into tables (INSERT INTO table)
-// - reads data from tables (SELECT ...)
+// - writes data of primitive types into the tables (INSERT INTO table)
+// - reads data from the tables (SELECT ...)
 // - deletes tables (DROP TABLE)
+// - destroys the cache
 class SqlDataProcessing {
     async start() {
         const igniteClient = new IgniteClient(this.onStateChanged.bind(this));

http://git-wip-us.apache.org/repos/asf/ignite/blob/711d62d3/modules/platforms/nodejs/examples/SqlQueryExample.js
----------------------------------------------------------------------
diff --git a/modules/platforms/nodejs/examples/SqlQueryExample.js 
b/modules/platforms/nodejs/examples/SqlQueryExample.js
index a3ae12a..9554b5e 100644
--- a/modules/platforms/nodejs/examples/SqlQueryExample.js
+++ b/modules/platforms/nodejs/examples/SqlQueryExample.js
@@ -48,11 +48,12 @@ class Person {
     }
 }
 
-// This example demonstrates basic Cache, Key-Value and SQL query operations.
-// - connects to ENDPOINT node
-// - creates a cache from CacheConfiguration
-// - writes data into the cache using CacheClient.put()
-// - reads data from the cache using SQL query
+// This example demonstrates basic Cache, Key-Value Queries and SQL Query 
operations:
+// - connects to a node
+// - creates a cache from CacheConfiguration, if it doesn't exist
+// - writes data of primitive and Complex Object types into the cache using 
Key-Value put operation
+// - reads data from the cache using SQL Query
+// - destroys the cache
 class SqlQueryExample {
     constructor() {
         this._cache = null;

Reply via email to