Struct xpcom::interfaces::mozIStorageAggregateFunction [] [src]

#[repr(C)]
pub struct mozIStorageAggregateFunction { /* fields omitted */ }

interface mozIStorageAggregateFunction : nsISupports

/**
 * mozIStorageAggregateFunction represents aggregate SQL function.
 * Common examples of aggregate functions are SUM() and COUNT().
 *
 * An aggregate function calculates one result for a given set of data, where
 * a set of data is a group of tuples. There can be one group
 * per request or many of them, if GROUP BY clause is used or not.
 */

Methods

impl mozIStorageAggregateFunction
[src]

[src]

Cast this mozIStorageAggregateFunction to one of its base interfaces.

impl mozIStorageAggregateFunction
[src]

[src]

/**
   * onStep is called when next value should be passed to
   * a custom function.
   *
   * @param aFunctionArguments    The arguments passed in to the function
   */

void onStep (in mozIStorageValueArray aFunctionArguments);

[src]

/**
   * Called when all tuples in a group have been processed and the engine
   * needs the aggregate function's value.
   *
   * @returns aggregate result as Variant.
   */

nsIVariant onFinal ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for mozIStorageAggregateFunction
[src]

IID: nsIID = nsID(1982994359, 12579, 4570, [145, 141, 0, 3, 71, 65, 46, 22])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for mozIStorageAggregateFunction
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for mozIStorageAggregateFunction
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.