API Docs for: 2.2.2
Show:

FetchSchema.Builder Class

A builder for constructing FetchSchema instances.

Rather than having to manually construct the options and instantiating a FetchSchema directly, this builder may be used.

var fetch = FetchSchema.Builder()
             .withSchemaName('schema_name')
             .withCallback(callback)
             .build();

Constructor

FetchSchema.Builder

()

Item Index

Methods

build

() FetchSchema

Construct a FetchSchema instance.

Returns:

withCallback

(
  • callback
)
chainable

Set the callback to be executed when the operation completes.

Parameters:

  • callback Function

    The callback to be executed when the operation completes.

    • err String

      An error message. Will be null if no error.

    • response Object

      The response from Riak.

      • name String
        The schema name.
      • content String
        The schema XML.

withSchemaName

(
  • schemaName
)
chainable

The name of the schema to fetch.

Parameters:

  • schemaName String

    the name of the schema