org.apache.accumulo.core.data
Class KeyValue

java.lang.Object
  extended by java.util.AbstractMap.SimpleImmutableEntry<Key,Value>
      extended by 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 Summary
KeyValue(Key key, byte[] value)
          Creates a new key/value pair.
KeyValue(Key key, ByteBuffer value)
          Creates a new key/value pair.
KeyValue(Key key, Value value)
          Creates a new key/value pair.
 
Method Summary
 
Methods inherited from class java.util.AbstractMap.SimpleImmutableEntry
equals, getKey, getValue, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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


Copyright © 2015 Apache Accumulo Project. All rights reserved.