Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv
Class KeyValueVersion

java.lang.Object
  extended by oracle.kv.KeyValueVersion

public class KeyValueVersion
extends Object

Represents a key/value pair along with its version.

A KeyValueVersion instance is returned by methods such as KVStore.storeIterator(Direction, int) and KVStore.multiGetIterator(Direction, int, Key, KeyRange, Depth). The key, version and value properties will always be non-null.


Constructor Summary
KeyValueVersion(Key key, Value value, Version version)
          Creates a KeyValueVersion with non-null properties.
 
Method Summary
 Key getKey()
          Returns the Key part of the KV pair.
 Value getValue()
          Returns the Value part of the KV pair.
 Version getVersion()
          Returns the Version of the KV pair.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValueVersion

public KeyValueVersion(Key key,
                       Value value,
                       Version version)
Creates a KeyValueVersion with non-null properties.

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.


getVersion

public Version getVersion()
Returns the Version of the KV pair.


toString

public String toString()
Overrides:
toString in class Object

Oracle NoSQL Database
version 11gR2.2.0.26

Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.