API Docs for: 2.2.2
Show:

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

build

() FetchIndex

Construct a FetchIndex 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

      error message

    • response Object

      array of indexes.

      • indexName String
        The name of the index.
      • schemaName String
        The schema for the index.

withIndexName

(
  • indexName
)
chainable

The name of the index to fetch. If one is not supplied, all indexes are returned.

Parameters:

  • indexName String

    the name of the index