Package oracle.kv

Class KeyValue


  • public class KeyValue
    extends java.lang.Object
    Represents a key/value pair.

    The KeyValue is used as element of input argument EntryStream<KeyValue> for put, the key and value properties will always be non-null.

    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValue​(Key key, Value value)
      Creates a KeyValue, key and value should be non-null.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Key getKey()
      Returns the Key part of the KV pair.
      Value getValue()
      Returns the Value part of the KV pair.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • KeyValue

        public KeyValue​(Key key,
                        Value value)
        Creates a KeyValue, key and value should be non-null.
    • Method Detail

      • getKey

        public Key getKey()
        Returns the Key part of the KV pair.
      • getValue

        public Value getValue()
        Returns the Value part of the KV pair.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object