Options
All
  • Public
  • Public/Protected
  • All
Menu

RangeBuilder is a primitive builder for range queries on the kv store. It's extended by the Single and MultiRangeBuilders, which contain the concrete methods to execute the built query.

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected callOptions

callOptions: CallOptions | undefined

Protected Readonly namespace

namespace: NSApplicator

Protected request

request: IRangeRequest

Methods

catch

  • catch<R>(onRejected: (err: any) => R | Promise<R>): Promise<T | R>
  • catch implements Promiselike.catch()

    Type parameters

    • R

    Parameters

    • onRejected: (err: any) => R | Promise<R>
        • (err: any): R | Promise<R>
        • Parameters

          • err: any

          Returns R | Promise<R>

    Returns Promise<T | R>

Protected Abstract createPromise

  • createPromise(): Promise<T>

maxCreateRevision

  • maxCreateRevision(maxCreateRevision: number | string): this
  • maxCreateRevision sets the maximum create revision of keys to return.

    Parameters

    • maxCreateRevision: number | string

    Returns this

maxModRevision

  • maxModRevision(maxModRevision: number | string): this
  • maxModRevision sets the maximum modified revision of keys to return.

    Parameters

    • maxModRevision: number | string

    Returns this

minCreateRevision

  • minCreateRevision(minCreateRevision: number | string): this
  • minCreateRevision sets the minimum create revision of keys to return.

    Parameters

    • minCreateRevision: number | string

    Returns this

minModRevision

  • minModRevision(minModRevision: number | string): this
  • minModRevision sets the minimum modified revision of keys to return.

    Parameters

    • minModRevision: number | string

    Returns this

op

options

  • options(options: CallOptions | undefined): this
  • Sets the GRPC call options for this request.

    Parameters

    • options: CallOptions | undefined

    Returns this

revision

  • revision(rev: number | string): this
  • revision is the point-in-time of the key-value store to use for the range.

    Parameters

    • rev: number | string

    Returns this

serializable

  • serializable(serializable: boolean): this
  • serializable sets the range request to use serializable member-local reads.

    Parameters

    • serializable: boolean

    Returns this

then

  • then<R, V>(onFulfilled: (value: T) => R | Promise<R>, onRejected?: undefined | ((err: any) => V | Promise<V>)): Promise<R | V>
  • then implements Promiselike.then()

    Type parameters

    • R

    • V

    Parameters

    • onFulfilled: (value: T) => R | Promise<R>
        • (value: T): R | Promise<R>
        • Parameters

          • value: T

          Returns R | Promise<R>

    • Optional onRejected: undefined | ((err: any) => V | Promise<V>)

    Returns Promise<R | V>

Legend

  • Constructor
  • Method
  • Inherited method

Generated using TypeDoc