API Docs for: 2.2.2
Show:

Store.Builder Class

Module: TS

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

()

Methods

build

() Store

Construct a Store instance.

Returns:

Store:

a Store instance

withCallback

(
  • callback
)
chainable

Set the callback to be executed when the operation completes.

Parameters:

  • callback Function

    The allback to be executed when the operation completes.

    • err String

      An error message. Will be null if no error.

    • response Object

      The response from Riak

withColumns

(
  • columns
)
chainable

Set the columns (optional).

Parameters:

  • columns Object

    the timeseries columns in Riak

withRows

(
  • rows
)
chainable

Set the rows.

Parameters:

  • rows Object

    the timeseries row data

withTable

(
  • table
)
chainable

Set the table.

Parameters:

  • table String

    the table in Riak