AggregateFunctionFinalScope
Scope for use with AggregateFunction.final, WindowFunction.final and WindowFunction.value.
Functions
Returns the aggregate context, if any, as C.
Sets the result to value, using SQLite's own convention for booleans, 1 for true and 0 for false, since SQLite has no dedicated boolean storage class.
Convenience overload of resultBoolean that returns null when value is null.
Convenience overload of resultBuffer that returns null when value is null.
Sets the bytes buffer value as the result.
Convenience overload of resultByteArray that returns null when value is null.
Sets the 64-bit floating point value as the result.
Convenience overload of resultDouble that returns null when value is null.
Fails the function call with message. Equivalent to throwing an SQLiteException with result as its error code.
Fails the function call, indicating that a memory allocation failed. Unlike resultError, this does not accept a message and performs no allocation of its own, so it remains safe to call even when memory is already exhausted.
Fails the function call with a canned "string or BLOB too big" error. Unlike resultError, this does not accept a message, since the failure is already self-explanatory and does not need one formatted.
Sets the 64-bit signed integer value as the result.
Convenience overload of resultLong that returns null when value is null.
Sets the result as null.
Sets value as the result.
Convenience overload of resultPointer that returns null when value is null.
Sets the text value as the UTF-8 encoded result.
Convenience overload of resultString that returns null when value is null.
Convenience overload of resultText that returns null when value is null.
Convenience overload of resultValue that returns null when value is null.
Sets the result to be a buffer of size bytes, all set to zero.
Overload of resultZeroBlob for sizes larger than Int.MAX_VALUE.