Package org.sqlite
Class Function.Aggregate
- java.lang.Object
-
- org.sqlite.Function
-
- org.sqlite.Function.Aggregate
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
Function.Window
- Enclosing class:
- Function
public abstract static class Function.Aggregate extends Function implements java.lang.Cloneable
Provides an interface for creating SQLite user-defined aggregate functions.- See Also:
Function
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sqlite.Function
Function.Aggregate, Function.Window
-
-
Field Summary
-
Fields inherited from class org.sqlite.Function
FLAG_DETERMINISTIC
-
-
Constructor Summary
Constructors Constructor Description Aggregate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
protected abstract void
xFinal()
Defines the abstract aggregate callback functionprotected void
xFunc()
Called by SQLite as a custom function.protected abstract void
xStep()
Defines the abstract aggregate callback function-
Methods inherited from class org.sqlite.Function
args, create, create, create, destroy, destroy, error, result, result, result, result, result, result, value_blob, value_double, value_int, value_long, value_text, value_type
-
-
-
-
Method Detail
-
xFunc
protected final void xFunc()
Description copied from class:Function
Called by SQLite as a custom function. Should access arguments through value_*(int), return results with result(*) and throw errors with error(String).- Specified by:
xFunc
in classFunction
- See Also:
Function.xFunc()
-
xStep
protected abstract void xStep() throws java.sql.SQLException
Defines the abstract aggregate callback function- Throws:
java.sql.SQLException
- See Also:
- https://www.sqlite.org/c3ref/aggregate_context.html
-
xFinal
protected abstract void xFinal() throws java.sql.SQLException
Defines the abstract aggregate callback function- Throws:
java.sql.SQLException
- See Also:
- https://www.sqlite.org/c3ref/aggregate_context.html
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
- See Also:
Object.clone()
-
-