RowDataUtils

RowDataUtils

RowDataUtils is a class containing functionality needed by the Row and AuthorizedView classes. Its static methods need to be contained in a class so that they can be mocked out using the sinon library as is conventional throughout the rest of the client library.

Constructor

new RowDataUtils()

Methods

(static) createRulesUtil(rules, properties, gaxOptionsopt, callback)

Called by createRules methods for fulfilling table and authorized view requests.

Parameters:
Name Type Attributes Description
rules object | Array.<object>

The rules to apply to this row.

properties RowProperties

Properties containing data for the request.

gaxOptions object <optional>

Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html.

callback function

The callback function.

(static) filterUtil(filter, properties, configOrCallback, cb)

Called by filter methods for fulfilling table and authorized view requests.

Parameters:
Name Type Description
filter Filter

Filter to be applied to the contents of the row.

properties RowProperties

Properties containing data for the request.

configOrCallback object

Configuration object.

cb function

The callback function.

(static) incrementUtils(column, properties, valueOrOptionsOrCallbackopt, optionsOrCallbackopt, cb)

Parameters:
Name Type Attributes Description
column string

The column we are incrementing a value in.

properties RowProperties

Properties containing data for the request.

valueOrOptionsOrCallback number <optional>

The amount to increment by, defaults to 1.

optionsOrCallback object <optional>

Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html.

cb function

The callback function.