ListKeys.Builder Class
A builder for constructing ListKeys instances.
Rather than having to manually construct the options and instantiating a ListKeys directly, this builder may be used.
var listKeys = new ListKeys.Builder()
.withTable('table')
.withCallback(myCallback)
.build();
Constructor
ListKeys.Builder
()
Item Index
Methods
withBucket
-
bucket
Set the bucket.
Parameters:
-
bucket
Stringthe bucket in Riak
withBucketType
-
bucketType
Set the bucket type. If not supplied, 'default' is used.
Parameters:
-
bucketType
Stringthe bucket type in riak
withCallback
-
callback
Set the callback to be executed when the operation completes.
Parameters:
-
callback
FunctionThe callback to be executed when the operation completes.
-
err
StringAn error message. Will be null if no error.
-
response
Objectthe keys returned from Riak.
-
done
BooleanTrue if you have received all the keys. -
bucketType
StringThe bucketType the keys are from. -
bucket
StringThe bucket the keys are from. -
keys
StringThe array of keys.
-
-
withCallback
-
callback
Set the callback to be executed when the operation completes.
Parameters:
-
callback
FunctionThe callback to be executed when the operation completes.
-
err
StringAn error message. Will be null if no error.
-
response
Objectthe keys returned from Riak.
-
done
BooleanTrue if you have received all the keys. -
table
StringThe table the keys are from. -
keys
StringThe array of keys.
-
-
withStreaming
-
[stream=true]
Stream the results. Setting this to true will cause you callback to be called as the results are returned from Riak. Set to false the result set will be buffered and delevered via a single call to your callback. Note that on large result sets this is very memory intensive.
Parameters:
-
[stream=true]
Boolean optionalSet whether or not to stream the results
withStreaming
-
[stream=true]
Stream the results. Setting this to true will cause you callback to be called as the results are returned from Riak TS. Set to false the result set will be buffered and delevered via a single call to your callback. Note that on large result sets this is very memory intensive.
Parameters:
-
[stream=true]
Boolean optionalSet whether or not to stream the results
withTable
-
table
Set the table.
Parameters:
-
table
StringThe table in Riak TS
withTimeout
-
timeout
Set a timeout for this operation.
Parameters:
-
timeout
Numbera timeout in milliseconds.
withTimeout
-
timeout
Set a timeout for this operation.
Parameters:
-
timeout
Numbera timeout in milliseconds.