class Aerospike::BatchUDF
Batch user defined functions.
Constants
- DEFAULT_BATCH_UDF_POLICY
Attributes
arg_bytes[R]
Wire protocol bytes for function args. For internal use only.
function_args[RW]
Optional arguments to lua function.
function_name[RW]
Lua function name.
package_name[RW]
Package or lua module name.
policy[RW]
Optional UDF
policy.
Public Class Methods
new(key, package_name, function_name, function_args, opt = {})
click to toggle source
Constructor using default policy.
Calls superclass method
Aerospike::BatchRecord::new
# File lib/aerospike/batch_udf.rb, line 41 def initialize(key, package_name, function_name, function_args, opt = {}) super(key, has_write: true) @policy = BatchRecord.create_policy(opt, BatchUDFPolicy, DEFAULT_BATCH_UDF_POLICY) @package_name = package_name @function_name = function_name @function_args = ListValue.new(function_args) # Do not set arg_bytes here because may not be necessary if batch repeat flag is used. end