Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.io
Interface BinaryStore

All Known Implementing Classes:
  AbstractBinaryStore, AsyncBinaryStore, BerkeleyDBBinaryStore, BinaryMapStore, SerializationPagedCache.FakeBinaryStore, SerializationPagedCache.PagedBinaryStore, SerializationPagedCache.WrapperBinaryStore

    public interface BinaryStore

A simple mapping of CacheStore operations for Binary objects into a Java interface.

Since:
  Coherence 2.2
Author:
  cp 2003.05.26
See Also:
  `CacheStore`

Method Summary
`void` | `erase(Binary binKey)` Remove the specified key from the underlying store if present.
`void` | `eraseAll()` Remove all data from the underlying store.
`java.util.Iterator` | `keys()` Iterate all keys in the underlying store.
`Binary` | `load(Binary binKey)` Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store.
`void` | `store(Binary binKey, Binary binValue)` Store the specified value under the specific key in the underlying store.

Method Detail

### load

    Binary load(Binary binKey)

  Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store.

  Parameters:
    `binKey` - key whose associated value is to be returned
  Returns:
    the value associated with the specified key, or `null` if no value is available for that key

### store

    void store(Binary binKey,
               Binary binValue)

  Store the specified value under the specific key in the underlying store. This method is intended to support both key/value creation and value update for a specific key.

  Parameters:
    `binKey` - key to store the value under
    `binValue` - value to be stored
  Throws:
    `java.lang.UnsupportedOperationException` - if this implementation or the underlying store is read-only

### erase

    void erase(Binary binKey)

  Remove the specified key from the underlying store if present.

  Parameters:
    `binKey` - key whose mapping is to be removed from the map
  Throws:
    `java.lang.UnsupportedOperationException` - if this implementation or the underlying store is read-only

### eraseAll

    void eraseAll()

  Remove all data from the underlying store.

  Throws:
    `java.lang.UnsupportedOperationException` - if this implementation or the underlying store is read-only

### keys

    java.util.Iterator keys()

  Iterate all keys in the underlying store.

  Returns:
    a read-only iterator of the keys in the underlying store
  Throws:
    `java.lang.UnsupportedOperationException` - if the underlying store is not iterable

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.