[18/50] [abbrv] ignite git commit: IGNITE-7777: Implemented Ignite NodeJs thin client

2018-07-02 Thread av
http://git-wip-us.apache.org/repos/asf/ignite/blob/c56d16fb/modules/platforms/nodejs/api_spec/fonts/OpenSans-LightItalic-webfont.woff
--
diff --git 
a/modules/platforms/nodejs/api_spec/fonts/OpenSans-LightItalic-webfont.woff 
b/modules/platforms/nodejs/api_spec/fonts/OpenSans-LightItalic-webfont.woff
new file mode 100644
index 000..43e8b9e
Binary files /dev/null and 
b/modules/platforms/nodejs/api_spec/fonts/OpenSans-LightItalic-webfont.woff 
differ

http://git-wip-us.apache.org/repos/asf/ignite/blob/c56d16fb/modules/platforms/nodejs/api_spec/fonts/OpenSans-Regular-webfont.eot
--
diff --git 
a/modules/platforms/nodejs/api_spec/fonts/OpenSans-Regular-webfont.eot 
b/modules/platforms/nodejs/api_spec/fonts/OpenSans-Regular-webfont.eot
new file mode 100644
index 000..6bbc3cf
Binary files /dev/null and 
b/modules/platforms/nodejs/api_spec/fonts/OpenSans-Regular-webfont.eot differ



[18/50] [abbrv] ignite git commit: IGNITE-7777: Implemented Ignite NodeJs thin client

2018-06-30 Thread agoncharuk
http://git-wip-us.apache.org/repos/asf/ignite/blob/c56d16fb/modules/platforms/nodejs/index.js
--
diff --git a/modules/platforms/nodejs/index.js 
b/modules/platforms/nodejs/index.js
new file mode 100644
index 000..cce86ab
--- /dev/null
+++ b/modules/platforms/nodejs/index.js
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+'use strict';
+
+module.exports = require('./lib/IgniteClient');
+module.exports.ObjectType = require('./lib/ObjectType').ObjectType;
+module.exports.MapObjectType = require('./lib/ObjectType').MapObjectType;
+module.exports.CollectionObjectType = 
require('./lib/ObjectType').CollectionObjectType;
+module.exports.ComplexObjectType = 
require('./lib/ObjectType').ComplexObjectType;
+module.exports.ObjectArrayType = require('./lib/ObjectType').ObjectArrayType;
+module.exports.BinaryObject = require('./lib/BinaryObject');
+module.exports.Timestamp = require('./lib/Timestamp');
+module.exports.EnumItem = require('./lib/EnumItem');
+module.exports.Decimal = require('decimal.js');
+module.exports.Errors = require('./lib/Errors');
+module.exports.IgniteClientConfiguration = 
require('./lib/IgniteClientConfiguration');
+module.exports.CacheClient = require('./lib/CacheClient');
+module.exports.CacheEntry = require('./lib/CacheClient').CacheEntry;
+module.exports.CacheConfiguration = require('./lib/CacheConfiguration');
+module.exports.QueryEntity = require('./lib/CacheConfiguration').QueryEntity;
+module.exports.QueryField = require('./lib/CacheConfiguration').QueryField;
+module.exports.QueryIndex = require('./lib/CacheConfiguration').QueryIndex;
+module.exports.CacheKeyConfiguration = 
require('./lib/CacheConfiguration').CacheKeyConfiguration;
+module.exports.SqlQuery = require('./lib/Query').SqlQuery;
+module.exports.SqlFieldsQuery = require('./lib/Query').SqlFieldsQuery;
+module.exports.ScanQuery = require('./lib/Query').ScanQuery;
+module.exports.Cursor = require('./lib/Cursor').Cursor;
+module.exports.SqlFieldsCursor = require('./lib/Cursor').SqlFieldsCursor;

http://git-wip-us.apache.org/repos/asf/ignite/blob/c56d16fb/modules/platforms/nodejs/lib/BinaryObject.js
--
diff --git a/modules/platforms/nodejs/lib/BinaryObject.js 
b/modules/platforms/nodejs/lib/BinaryObject.js
new file mode 100644
index 000..2cc6be6
--- /dev/null
+++ b/modules/platforms/nodejs/lib/BinaryObject.js
@@ -0,0 +1,498 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+'use strict';
+
+const Util = require('util');
+const ObjectType = require('./ObjectType').ObjectType;
+const ComplexObjectType = require('./ObjectType').ComplexObjectType;
+const Errors = require('./Errors');
+const BinaryUtils = require('./internal/BinaryUtils');
+const BinaryType = require('./internal/BinaryType');
+const BinaryField = require('./internal/BinaryType').BinaryField;
+const BinaryTypeBuilder = require('./internal/BinaryType').BinaryTypeBuilder;
+const BinaryWriter = require('./internal/BinaryWriter');
+const ArgumentChecker = require('./internal/ArgumentChecker');
+const Logger = require('./internal/Logger');
+
+const HEADER_LENGTH = 24;
+const VERSION = 1;
+
+// user type
+const FLAG_USER_TYPE = 0x0001;
+// schema exists
+const FLAG_HAS_SCHEMA = 0x0002;
+// object contains raw data
+const FLAG_HAS_RAW_DATA = 0x0004;
+// offsets take 1 byte
+const