tokyocabinet
Interface TDBQRYPROC


public interface TDBQRYPROC

Custom comparator is an interface which has a method to compare two keys of B+ tree records.


Field Summary
static int QPOUT
          post treatment: remove the record
static int QPPUT
          post treatment: modify the record
static int QPSTOP
          post treatment: stop the iteration
 
Method Summary
 int proc(byte[] pkey, java.util.Map cols)
          Process a record in iteration of a query result set.
 

Field Detail

QPOUT

static final int QPOUT
post treatment: remove the record

See Also:
Constant Field Values

QPPUT

static final int QPPUT
post treatment: modify the record

See Also:
Constant Field Values

QPSTOP

static final int QPSTOP
post treatment: stop the iteration

See Also:
Constant Field Values
Method Detail

proc

int proc(byte[] pkey,
         java.util.Map cols)
Process a record in iteration of a query result set.

Parameters:
pkey - the primary key.
cols - a map object containing columns. Type of each key is `String'. Type of each value is `byte[]'.
Returns:
Flags of the post treatment by bitwise-or: `TDBQRYPROC.QPPUT' to modify the record, `TDBQRYPROC.QPOUT' to remove the record, `TDBQRYPROC.QPSTOP' to stop the iteration.