Aerospike LINDPad Driver

AUDFAccess..::..QueryAggregate Method (Statement, array<Object>[]()[][])

Executes the UDF based on statement and functionArgs

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public IEnumerable<Object> QueryAggregate(
	Statement statement,
	params Object[] functionArgs
)

Parameters

statement
Type: Statement
Aerospike Statement instance
functionArgs
Type: array<Object>[]()[][]
The values that are passed to the UDF. These values can be a Value or a C# native type.

Return Value

An Aerospike Result Set from the UDF

Examples


Calls a UDF that produces a aggregate value in namespace "test" set "users" on "binstweetcount" and "region" It also uses a index with a filter.
C#
var bins = { "tweetcount", "region" };
var stmt = new Statement();

stmt.SetNamespace("test");
stmt.SetSetName("users");
stmt.SetIndexName("tweetcount_index");
stmt.SetBinNames(bins);
stmt.SetFilters(Filter.Range("tweetcount", min, max));

var result = this.QueryAggregate(stmt);