kyotocabinet
Interface Visitor


public interface Visitor

Interface to access a record.


Field Summary
static byte[] NOP
          magic data: no operation
static byte[] REMOVE
          magic data: remove the record
 
Method Summary
 byte[] visit_empty(byte[] key)
          Visit a empty record space.
 byte[] visit_full(byte[] key, byte[] value)
          Visit a record.
 

Field Detail

NOP

static final byte[] NOP
magic data: no operation


REMOVE

static final byte[] REMOVE
magic data: remove the record

Method Detail

visit_empty

byte[] visit_empty(byte[] key)
Visit a empty record space.

Parameters:
key - the key.
Returns:
If it is a string, the value is replaced by the content. If it is Visitor.NOP or Visitor.REMOVE, nothing is modified.

visit_full

byte[] visit_full(byte[] key,
                  byte[] value)
Visit a record.

Parameters:
key - the key.
value - the value.
Returns:
If it is a string, the value is replaced by the content. If it is Visitor.NOP, nothing is modified. If it is Visitor.REMOVE, the record is removed.