FetchIndex.Builder Class
A builder for constructing FetchIndex instances.
Rather than having to manually construct the options and instantiating a FetchIndex directly, this builder may be used.
var fetch = FetchIndex.Builder()
.withIndexName('index_name')
.withCallback(callback)
.build();
Constructor
FetchIndex.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
Stringerror message
-
response
Objectarray of indexes.
-
indexName
StringThe name of the index. -
schemaName
StringThe schema for the index.
-
-
withIndexName
(
chainable
-
indexName
The name of the index to fetch. If one is not supplied, all indexes are returned.
Parameters:
-
indexName
Stringthe name of the index