org.apache.accumulo.core.data
Class KeyValue

java.lang.Object
  extended by org.apache.accumulo.core.data.KeyValue
All Implemented Interfaces:
Map.Entry<Key,Value>

public class KeyValue
extends Object
implements Map.Entry<Key,Value>


Field Summary
 Key key
           
 byte[] value
           
 
Constructor Summary
KeyValue(Key key, byte[] value)
           
KeyValue(Key key, ByteBuffer value)
           
 
Method Summary
 Key getKey()
           
 Value getValue()
           
 Value setValue(Value value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

key

public Key key

value

public byte[] value
Constructor Detail

KeyValue

public KeyValue(Key key,
                byte[] value)

KeyValue

public KeyValue(Key key,
                ByteBuffer value)
Method Detail

getKey

public Key getKey()
Specified by:
getKey in interface Map.Entry<Key,Value>

getValue

public Value getValue()
Specified by:
getValue in interface Map.Entry<Key,Value>

setValue

public Value setValue(Value value)
Specified by:
setValue in interface Map.Entry<Key,Value>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.