aerospike
Advanced tools
Comparing version 1.0.31 to 1.0.34
@@ -30,2 +30,3 @@ # Client Class | ||
- [indexRemove()](#indexRemove) | ||
- [LargeList()](#largeList) | ||
- [operate()](#operate) | ||
@@ -460,3 +461,32 @@ - [put()](#put) | ||
``` | ||
<!-- | ||
################################################################################ | ||
LargeList() | ||
################################################################################ | ||
--> | ||
<a name="largeList"></a> | ||
### LargeList(key, binName, writePolicy, createModule):LargeList | ||
creates a new [LargeList](largelist.md) object, which is used to perform all LDT operations in the database. | ||
Parameters: | ||
- `key` - A [Key object](datamodel.md#key), used to locate the record in the cluster. | ||
- `binName` - Name of the Large Data Type Bin. | ||
- `applyPolicy` - (optional) A [Apply Policy object](policies.md#ApplyPolicy) to use for this operation. | ||
- `createModule`- (optional) Lua function name that initialized list configuration parameters, pass null for | ||
default list. | ||
Example: | ||
```js | ||
var key = { ns: "test", set: "demo", key: "ldt_key"} | ||
var binName = "ldtBinName"; | ||
var policy = { timeout: 1000 } | ||
var llist = client.LargeList(key, binName, policy); | ||
``` | ||
For details, see [LargeList Class](largelist.md) | ||
<!-- | ||
@@ -463,0 +493,0 @@ ################################################################################ |
@@ -17,6 +17,6 @@ # Query Class | ||
- [query on an index](#QueryIndex) | ||
- [aggregation on an index](#QueryAggregate) | ||
- [Query on an index](#QueryIndex) | ||
- [Aggregation on an index](#QueryAggregate) | ||
- [Scan foreground](#ScanForeground) | ||
- [scan backgorund](#ScanBackground) | ||
- [Scan backgorund](#ScanBackground) | ||
- [Scan info](#ScanInfo) | ||
@@ -46,5 +46,5 @@ | ||
#### `scanUDF` | ||
#### `UDF` | ||
`scanUDF` is an instance of [udfArgs](datamodel.md#UDFArgs). It is the UDF to be run on all the records | ||
`UDF` is an instance of [udfArgs](datamodel.md#UDFArgs). It is the UDF to be run on all the records | ||
in the Aerospike database through a background job. | ||
@@ -196,2 +196,3 @@ | ||
Scan Aggregation executes a Map-Reduce job on all the records in the Aerospike database. | ||
Scan Aggregation is supported by Aerospike server on versions later than 3.4.1 | ||
The Map-Reduce job is in written in LUA using UDF. The UDF used by the aggregation | ||
@@ -213,3 +214,3 @@ job must be registered prior to using the given UDF in aggregation. | ||
var query = client.query(ns, set ); // returns a query object. | ||
var query = client.query(ns, set, statement ); // returns a query object. | ||
@@ -258,9 +259,13 @@ var dataCallback = function(result) { | ||
var query = client.query(ns, set, statement); // returns a query object. | ||
// callback to handle the error event emitted by query stream. | ||
var errorCallback = function(error) { | ||
//process the error | ||
} | ||
// callback to handle the end event emitted by query stream. | ||
var endCallback = function() { | ||
//signals that the scan background job has been successfully fired. | ||
} | ||
var stream = query.execute(); // returns a stream object. | ||
@@ -267,0 +272,0 @@ stream.on('error', errorCallback); |
var as = require('../build/Release/aerospike.node') | ||
var LargeList = require('./llist.js'); | ||
var stream = require('stream'); | ||
@@ -251,2 +252,6 @@ var inherits = require('util').inherits; | ||
} | ||
if( !proto.LargeList) { | ||
proto.LargeList = LargeList; | ||
} | ||
return client; | ||
@@ -253,0 +258,0 @@ }; |
{ | ||
"name" : "aerospike", | ||
"version" : "1.0.31", | ||
"version" : "1.0.34", | ||
"description" : "Aerospike Client Library", | ||
@@ -9,3 +9,3 @@ "tags" : [ "aerospike", "database", "nosql" ], | ||
"engines" : { | ||
"node" : ">=0.10" | ||
"node" : ">=0.10 <0.12" | ||
}, | ||
@@ -12,0 +12,0 @@ "os" : [ "linux", "darwin" ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
869601
133
9718
32