Package tkrzw

Interface RecordProcessor


public interface RecordProcessor
Interface of processor for a record.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Container of a processor and a key.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte[]
    The special string indicating removing operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    process(byte[] key, byte[] value)
    Processes a record.
  • Field Details

    • REMOVE

      static final byte[] REMOVE
      The special string indicating removing operation.
      Note:
      The actual value is set by the native code.
  • Method Details

    • process

      byte[] process(byte[] key, byte[] value)
      Processes a record.
      Parameters:
      key - The key of the existing record.
      value - The value of the existing record.
      Returns:
      A string reference to NOOP, REMOVE, or a byte array of a new value.