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
Methods
withCallback
(
chainable
-
callback
Set the callback to be executed when the operation completes.
Parameters:
-
callback
FunctionThe callback to be executed when the operation completes.
-
err
StringAn error message. Will be null if no error.
-
response
ObjectThe response from Riak.
-
name
StringThe schema name. -
content
StringThe schema XML.
-
-
withSchemaName
(
chainable
-
schemaName
The name of the schema to fetch.
Parameters:
-
schemaName
Stringthe name of the schema