Class KyotoCabinet::Visitor
In: kyotocabinet.rb
Parent: Object

Interface to access a record.

Methods

Constants

NOP = "(magic data)"   magic data: no operation
REMOVE = "(magic data)"   magic data: remove the record

Public Instance methods

Visit a empty record space.

  • @param key the key.
  • @return If it is a string, the value is replaced by the content. If it is Visitor::NOP or Visitor::REMOVE, nothing is modified.

Visit a record.

  • @param key the key.
  • @param value the value.
  • @return 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.