org.sqlite.udf
クラス AggregateFunction<T>

java.lang.Object
  上位を拡張 org.sqlite.callback.Callback
      上位を拡張 org.sqlite.callback.NamedCallback
          上位を拡張 org.sqlite.udf.Function
              上位を拡張 org.sqlite.udf.AggregateFunction<T>

public abstract class AggregateFunction<T>
extends Function

User-Defined aggregate function class.

関連項目:
Create Or Redefine SQL Functions, JdbcConnection.createFunction(Function), JdbcConnection.dropFunction(Function)

フィールドの概要
protected  java.lang.ThreadLocal<T> tls
          thraed local storage
 
クラス org.sqlite.udf.Function から継承されたフィールド
argc
 
コンストラクタの概要
AggregateFunction(java.lang.String name)
           
AggregateFunction(java.lang.String name, int argc)
           
 
メソッドの概要
protected  T get()
          Returns the value in the current thread's copy of this thread-local variable.
protected abstract  T initialValue()
          Returns the current thread's "initial value" for this thread-local variable.
protected  void remove()
          Removes the current thread's value for this thread-local variable.
protected  void set(T value)
          Sets the current thread's copy of this thread-local variable to the specified value.
protected abstract  void xFinal(Context ctx)
           
protected  void xFinal(long context)
          Called from the sqlite3_step() function.
protected  void xFunc(Context ctx)
           
protected abstract  void xStep(Context ctx)
           
 
クラス org.sqlite.udf.Function から継承されたメソッド
getArgumentCount, xFunc
 
クラス org.sqlite.callback.NamedCallback から継承されたメソッド
getName
 
クラス org.sqlite.callback.Callback から継承されたメソッド
isRegistered
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

tls

protected final java.lang.ThreadLocal<T> tls
thraed local storage

コンストラクタの詳細

AggregateFunction

public AggregateFunction(java.lang.String name,
                         int argc)

AggregateFunction

public AggregateFunction(java.lang.String name)
メソッドの詳細

xFunc

protected final void xFunc(Context ctx)
                    throws java.sql.SQLException
定義:
クラス Function 内の xFunc
例外:
java.sql.SQLException

xFinal

protected final void xFinal(long context)
Called from the sqlite3_step() function.

パラメータ:
context -

initialValue

protected abstract T initialValue()
Returns the current thread's "initial value" for this thread-local variable.

戻り値:
the initial value for this thread-local
関連項目:
ThreadLocal.initialValue()

get

protected T get()
Returns the value in the current thread's copy of this thread-local variable.

戻り値:
the current thread's value of this thread-local
関連項目:
ThreadLocal.get()

remove

protected void remove()
Removes the current thread's value for this thread-local variable.

関連項目:
ThreadLocal.remove()

set

protected void set(T value)
Sets the current thread's copy of this thread-local variable to the specified value.

パラメータ:
value - the value to be stored in the current thread's copy of this thread-local.
関連項目:
ThreadLocal.set(Object)

xStep

protected abstract void xStep(Context ctx)
                       throws java.sql.SQLException
例外:
java.sql.SQLException

xFinal

protected abstract void xFinal(Context ctx)
                        throws java.sql.SQLException
例外:
java.sql.SQLException