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:
-
callbackFunctionThe callback to be executed when the operation completes.
-
errStringAn error message. Will be null if no error.
-
responseObjectThe response from Riak.
-
nameStringThe schema name. -
contentStringThe schema XML.
-
-
withSchemaName
(
chainable
-
schemaName
The name of the schema to fetch.
Parameters:
-
schemaNameStringthe name of the schema
