Class KeyValue

java.lang.Object
java.util.AbstractMap.SimpleImmutableEntry<Key,​Value>
org.apache.accumulo.core.data.KeyValue
All Implemented Interfaces:
Serializable, Map.Entry<Key,​Value>

public class KeyValue
extends AbstractMap.SimpleImmutableEntry<Key,​Value>
A key/value pair. The key and value may not be set after construction.
See Also:
Serialized Form
  • Constructor Details

    • KeyValue

      public KeyValue​(Key key, byte[] value)
      Creates a new key/value pair.
      Parameters:
      key - key
      value - bytes of value
    • KeyValue

      public KeyValue​(Key key, ByteBuffer value)
      Creates a new key/value pair.
      Parameters:
      key - key
      value - buffer containing bytes of value
    • KeyValue

      public KeyValue​(Key key, Value value)
      Creates a new key/value pair.
      Parameters:
      key - key
      value - buffer containing bytes of value