Store.Builder Class
A builder for constructing Store instances.
Rather than having to manually construct the options and instantiating a Store directly, this builder may be used.
var storeValue = new Store.Builder()
.withTable('table')
.withColumns(columns)
.withRows(rows)
.build();
Constructor
Store.Builder
()
Item Index
Methods
Methods
withCallback
(
chainable
-
callback
Set the callback to be executed when the operation completes.
Parameters:
-
callback
FunctionThe allback to be executed when the operation completes.
-
err
StringAn error message. Will be null if no error.
-
response
ObjectThe response from Riak
-
withColumns
(
chainable
-
columns
Set the columns (optional).
Parameters:
-
columns
Objectthe timeseries columns in Riak
withRows
(
chainable
-
rows
Set the rows.
Parameters:
-
rows
Objectthe timeseries row data
withTable
(
chainable
-
table
Set the table.
Parameters:
-
table
Stringthe table in Riak