# Uses of Class
oracle.kv.Consistency

Packages that use Consistency
Package
Description
oracle.kv
This package contains the public API for using Oracle NoSQL Database.
oracle.kv.hadoop
Support for loading Oracle NoSQL Database into Hadoop.
oracle.kv.hadoop.table
Support for running MapReduce jobs against data written to an Oracle NoSQL Database via the Table API.
oracle.kv.lob
The KVLargeObject interface defines the operations used to read and write Large Objects (LOBs) such as audio and video files.
oracle.kv.query
This package contains the majority of the public API for using Oracle NoSQL Database query language.
oracle.kv.table
Table support for Oracle NoSQL Database.

- ## Uses of Consistency in oracle.kv

  Subclasses of Consistency in oracle.kv
  Modifier and Type
  Class
  Description
  `static class`
  `Consistency.NoneRequired`
  `static class`
  `Consistency.Time`
  A consistency policy which describes the amount of time the Replica is allowed to lag the Master.
  `static class`
  `Consistency.Version`
  A consistency policy which ensures that the environment on a Replica node is at least as current as denoted by the specified Key-Value pair `Consistency.Version`.
  Fields in oracle.kv declared as Consistency
  Modifier and Type
  Field
  Description
  `static final Consistency`
  Consistency.`ABSOLUTE`
  A consistency policy that requires that a transaction be serviced on the Master so that consistency is absolute.
  `static final Consistency`
  Consistency.`NONE_REQUIRED`
  A consistency policy that lets a transaction on a replica using this policy proceed regardless of the state of the Replica relative to the Master.
  `static final Consistency`
  Consistency.`NONE_REQUIRED_NO_MASTER`
  Deprecated.
  as of 4.3, use `NONE_REQUIRED` or read zones instead
  Methods in oracle.kv that return Consistency
  Modifier and Type
  Method
  Description
  `static Consistency`
  Consistency.`fromByteArray(byte[] keyBytes)`
  Deserializes the given bytes that were returned earlier by `toByteArray()` and returns the resulting Consistency.
  `Consistency`
  ConsistencyException.`getConsistency()`
  Returns the consistency policy that could not be satisfied.
  `Consistency`
  KVStoreConfig.`getConsistency()`
  Returns the default read Consistency.
  Methods in oracle.kv with parameters of type Consistency
  Modifier and Type
  Method
  Description
  `ValueVersion`
  KVStore.`get(Key key, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Get the value associated with the key.
  `SortedMap<Key,ValueVersion>`
  KVStore.`multiGet(Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Returns the descendant key/value pairs associated with the `parentKey`.
  `Iterator<KeyValueVersion>`
  KVStore.`multiGetIterator(Direction direction, int batchSize, Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  The iterator form of `KVStore.multiGet(Key, KeyRange, Depth, Consistency, long, TimeUnit)`.
  `SortedSet<Key>`
  KVStore.`multiGetKeys(Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Returns the descendant keys associated with the `parentKey`.
  `Iterator<Key>`
  KVStore.`multiGetKeysIterator(Direction direction, int batchSize, Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  The iterator form of `KVStore.multiGetKeys(Key, KeyRange, Depth, Consistency, long, TimeUnit)`.
  `void`
  ConsistencyException.`setConsistency(Consistency consistency)`
  Sets the consistency policy.
  `KVStoreConfig`
  KVStoreConfig.`setConsistency(Consistency consistency)`
  Configures the default read Consistency to be used when a Consistency is not specified for a particular read operation.
  `ParallelScanIterator<KeyValueVersion>`
  KVStore.`storeIterator(Iterator<Key> parentKeyIterator, int batchSize, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit, StoreIteratorConfig storeIteratorConfig)`
  Returns an Iterator which iterates over all key/value pairs matching the keys supplied by iterator (or the descendants of a parentKey, or those in a KeyRange).
  `ParallelScanIterator<KeyValueVersion>`
  KVStore.`storeIterator(List<Iterator<Key>> parentKeyIterators, int batchSize, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit, StoreIteratorConfig storeIteratorConfig)`
  Returns an Iterator which iterates over all key/value pairs matching the keys supplied by iterators (or the descendants of a parentKey, or those in a KeyRange).
  `Iterator<KeyValueVersion>`
  KVStore.`storeIterator(Direction direction, int batchSize, Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Return an Iterator which iterates over all key/value pairs (or the descendants of a parentKey, or those in a KeyRange) in unsorted order.
  `ParallelScanIterator<KeyValueVersion>`
  KVStore.`storeIterator(Direction direction, int batchSize, Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit, StoreIteratorConfig storeIteratorConfig)`
  Return an Iterator which iterates over all key/value pairs (or the descendants of a parentKey, or those in a KeyRange).
  `ParallelScanIterator<Key>`
  KVStore.`storeKeysIterator(Iterator<Key> parentKeyIterator, int batchSize, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit, StoreIteratorConfig storeIteratorConfig)`
  Return an Iterator which iterates over all keys matching the keys supplied by iterator (or the descendants of a parentKey, or those in a KeyRange).
  `ParallelScanIterator<Key>`
  KVStore.`storeKeysIterator(List<Iterator<Key>> parentKeyIterators, int batchSize, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit, StoreIteratorConfig storeIteratorConfig)`
  Return an Iterator which iterates over all keys matching the keys supplied by iterators (or the descendants of a parentKey, or those in a KeyRange).
  `Iterator<Key>`
  KVStore.`storeKeysIterator(Direction direction, int batchSize, Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Return an Iterator which iterates over all keys (or the descendants of a parentKey, or those in a KeyRange) in unsorted order.
  `ParallelScanIterator<Key>`
  KVStore.`storeKeysIterator(Direction direction, int batchSize, Key parentKey, KeyRange subRange, Depth depth, Consistency consistency, long timeout, TimeUnit timeoutUnit, StoreIteratorConfig storeIteratorConfig)`
  Return an Iterator which iterates over all keys (or the descendants of a parentKey, or those in a KeyRange).

- ## Uses of Consistency in oracle.kv.hadoop

  Methods in oracle.kv.hadoop with parameters of type Consistency
  Modifier and Type
  Method
  Description
  `static void`
  KVInputFormatBase.`setConsistency(Consistency consistency)`
  Specifies the read consistency associated with the lookup of the child KV pairs.

- ## Uses of Consistency in oracle.kv.hadoop.table

  Methods in oracle.kv.hadoop.table with parameters of type Consistency
  Modifier and Type
  Method
  Description
  `static void`
  TableInputFormatBase.`setConsistency(Consistency consistency)`
  Specifies the read consistency associated with the lookup of the child KV pairs.

- ## Uses of Consistency in oracle.kv.lob

  Methods in oracle.kv.lob with parameters of type Consistency
  Modifier and Type
  Method
  Description
  `InputStreamVersion`
  KVLargeObject.`getLOB(Key lobKey, Consistency consistency, long lobTimeout, TimeUnit timeoutUnit)`
  Returns an InputStream representing the underlying LOB value associated with the key.

- ## Uses of Consistency in oracle.kv.query

  Methods in oracle.kv.query that return Consistency
  Modifier and Type
  Method
  Description
  `Consistency`
  ExecuteOptions.`getConsistency()`
  Gets the last set execution consistency.
  Methods in oracle.kv.query with parameters of type Consistency
  Modifier and Type
  Method
  Description
  `ExecuteOptions`
  ExecuteOptions.`setConsistency(Consistency consistency)`
  Sets the execution consistency.

- ## Uses of Consistency in oracle.kv.table

  Methods in oracle.kv.table that return Consistency
  Modifier and Type
  Method
  Description
  `Consistency`
  ReadOptions.`getConsistency()`
  Gets the consistency used for a read operation.
  Constructors in oracle.kv.table with parameters of type Consistency
  Modifier
  Constructor
  Description
  ``
  `ReadOptions(Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Creates a `ReadOptions` with the specified parameters.
  ``
  `TableIteratorOptions(Direction direction, Consistency consistency, long timeout, TimeUnit timeoutUnit)`
  Creates a `TableIteratorOptions` with the specified parameters.
  ``
  `TableIteratorOptions(Direction direction, Consistency consistency, long timeout, TimeUnit timeoutUnit, int maxConcurrentRequests, int batchResultsSize)`
  Creates a `TableIteratorOptions` with the specified parameters, including `maxConcurrentRequests` and `batchResultsSize` values.
  ``
  `TableIteratorOptions(Direction direction, Consistency consistency, long timeout, TimeUnit timeoutUnit, int maxConcurrentRequests, int batchResultsSize, int maxResultsBatches)`
  Deprecated.
  since 3.4, no longer supported.