## 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.avro | Binding classes for serializing and deserializing Values as Avro binary data.
  oracle.kv.hadoop | Support for loading Oracle NoSQL Database into Hadoop.
  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.table | Table support for Oracle NoSQL Database.

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

    Subclasses of Consistency in oracle.kv
    Modifier and Type | Class and Description
    --- | ---
    `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 `Version`.

    Fields in oracle.kv declared as Consistency
    Modifier and Type | Field and Description
    --- | ---
    `static Consistency` | Consistency.`ABSOLUTE` A consistency policy that requires that a transaction be serviced on the Master so that consistency is absolute.
    `static 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 Consistency` | Consistency.`NONE_REQUIRED_NO_MASTER` A consistency policy that requires that a read operation be serviced on a replica; never the Master.

    Methods in oracle.kv that return Consistency
    Modifier and Type | Method and Description
    --- | ---
    `static Consistency` | Consistency.`fromByteArray(byte[] keyBytes)` Deserializes the given bytes that were returned earlier by `toByteArray()` and returns the resulting Consistency.
    `Consistency` | KVStoreConfig.`getConsistency()` Returns the default read Consistency.
    `Consistency` | ConsistencyException.`getConsistency()` Returns the consistency policy that could not be satisfied.

    Methods in oracle.kv with parameters of type Consistency
    Modifier and Type | Method and 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)`.
    `KVStoreConfig` | KVStoreConfig.`setConsistency(Consistency consistency)` Configures the default read Consistency to be used when a Consistency is not specified for a particular read operation.
    `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) in unsorted order.
    `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) in unsorted order.

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

    Methods in oracle.kv.avro with parameters of type Consistency
    Modifier and Type | Method and Description
    --- | ---
    `void` | AvroCatalog.`refreshSchemaCache(Consistency consistency)` Refreshes the cache of stored schemas, adding any new schemas or new versions of schemas to the cache that have been stored via the administration interface since the cache was last refreshed.

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

    Methods in oracle.kv.hadoop with parameters of type Consistency
    Modifier and Type | Method and 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.lob

    Methods in oracle.kv.lob with parameters of type Consistency
    Modifier and Type | Method and 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.table

    Methods in oracle.kv.table that return Consistency
    Modifier and Type | Method and Description
    --- | ---
    `Consistency` | ReadOptions.`getConsistency()` Gets the consistency used for a read operation.

    Constructors in oracle.kv.table with parameters of type Consistency
    Constructor and 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, int maxResultsBatches)` Creates a `TableIteratorOptions` with the specified parameters.

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