Class BatchResult

Constructors

  • Construct a new BatchResult instance.

    Parameters

    • status:
          | 0
          | 1
          | 2
          | 3
          | 4
          | 5
          | ((code: 0 | 1 | 2 | 3 | 4 | 5 | ((code: 0 | 1 | 2 | 3 | 4 | 5 | typeof getMessage | 19 | -19 | 18 | -18 | 17 | -17 | 16 | -16 | 15 | -15 | 14 | -14 | 13 | -13 | 12 | -12 | 11 | -11 | 10 | -10 | 9 | -9 | ... 70 more ... | 1302) => string) | ... 92 more ... | 1302) => string)
          | 19
          | -19
          | 18
          | -18
          | 17
          | -17
          | 16
          | -16
          | 15
          | -15
          | 14
          | -14
          | 13
          | -13
          | 12
          | -12
          | 11
          | -11
          | 10
          | -10
          | 9
          | -9
          | 8
          | -8
          | 7
          | -7
          | 6
          | -6
          | -5
          | -4
          | -3
          | -2
          | -1
          | 20
          | 21
          | 22
          | 23
          | 24
          | 25
          | 26
          | 27
          | 28
          | 32
          | 50
          | 51
          | 52
          | 53
          | 54
          | 55
          | 56
          | 60
          | 61
          | 62
          | 63
          | 64
          | 65
          | 66
          | 70
          | 71
          | 72
          | 73
          | 74
          | 75
          | 80
          | 81
          | 82
          | 83
          | 100
          | 120
          | 121
          | 122
          | 123
          | 124
          | 125
          | 126
          | 127
          | 150
          | 151
          | 152
          | 160
          | 200
          | 201
          | 202
          | 203
          | 204
          | 205
          | 206
          | 210
          | 211
          | 212
          | 213
          | 1301
          | 1302
    • record: AerospikeRecord
    • inDoubt: boolean

    Returns BatchResult

Properties

inDoubt: boolean

It is possible that a write command completed even though the client returned this error. This may be the case when a client error occurs (like timeout) after the command was sent to the server.

Record result for the requested key. This record will only be populated when the result is AEROSPIKE_OK or AEROSPIKE_ERR_UDF.

status:
    | 0
    | 1
    | 2
    | 3
    | 4
    | 5
    | ((code: 0 | 1 | 2 | 3 | 4 | 5 | ((code: 0 | 1 | 2 | 3 | 4 | 5 | typeof getMessage | 19 | -19 | 18 | -18 | 17 | -17 | 16 | -16 | 15 | -15 | 14 | -14 | 13 | -13 | 12 | -12 | 11 | -11 | 10 | -10 | 9 | -9 | ... 70 more ... | 1302) => string) | ... 92 more ... | 1302) => string)
    | 19
    | -19
    | 18
    | -18
    | 17
    | -17
    | 16
    | -16
    | 15
    | -15
    | 14
    | -14
    | 13
    | -13
    | 12
    | -12
    | 11
    | -11
    | 10
    | -10
    | 9
    | -9
    | 8
    | -8
    | 7
    | -7
    | 6
    | -6
    | -5
    | -4
    | -3
    | -2
    | -1
    | 20
    | 21
    | 22
    | 23
    | 24
    | 25
    | 26
    | 27
    | 28
    | 32
    | 50
    | 51
    | 52
    | 53
    | 54
    | 55
    | 56
    | 60
    | 61
    | 62
    | 63
    | 64
    | 65
    | 66
    | 70
    | 71
    | 72
    | 73
    | 74
    | 75
    | 80
    | 81
    | 82
    | 83
    | 100
    | 120
    | 121
    | 122
    | 123
    | 124
    | 125
    | 126
    | 127
    | 150
    | 151
    | 152
    | 160
    | 200
    | 201
    | 202
    | 203
    | 204
    | 205
    | 206
    | 210
    | 211
    | 212
    | 213
    | 1301
    | 1302

Result code for this returned record. If not AEROSPIKE_OK, the record will be null.

Type declaration

    • (code): string
    • Produces a human-readable error message for the given status code.

      Parameters

      • code: 0 | 1 | 2 | 3 | 4 | 5 | ((code: 0 | 1 | 2 | 3 | 4 | 5 | typeof getMessage | 19 | -19 | 18 | -18 | 17 | -17 | 16 | -16 | 15 | -15 | 14 | -14 | 13 | -13 | 12 | -12 | 11 | -11 | 10 | -10 | 9 | -9 | ... 70 more ... | 1302) => string) | ... 92 more ... | 1302

      Returns string

MMNEPVFCICPMFPCPTTAAATR