Package com.tangosol.io.nio
Class BinaryMapStore
java.lang.Object
com.tangosol.io.nio.BinaryMapStore
- All Implemented Interfaces:
- Disposable,- BinaryStore,- BinaryStore.SizeAware,- AutoCloseable
public class BinaryMapStore
extends Object
implements BinaryStore, BinaryStore.SizeAware, Disposable
An implementation of BinaryStore backed by a BinaryMap.
- Since:
- Coherence 2.4
- Author:
- cp 2004.03.31
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.io.BinaryStoreBinaryStore.KeySetAware, BinaryStore.SizeAware
- 
Constructor SummaryConstructorsConstructorDescriptionBinaryMapStore(BinaryMap map) Construct a BinaryMapStore object, which is an implementation of the BinaryStore interface backed by a BinaryMap.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Deprecated.use the Disposable interface insteadvoiddispose()Invoked when all resources owned by the implementer can safely be released.voidRemove the specified key from the underlying store if present.voideraseAll()Remove all data from the underlying store.Obtain the underlying BinaryMap.keys()Iterate all keys in the underlying store.Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store.intsize()Determine the number of keys in the BinaryStore.voidStore the specified value under the specific key in the underlying store.
- 
Constructor Details- 
BinaryMapStoreConstruct a BinaryMapStore object, which is an implementation of the BinaryStore interface backed by a BinaryMap.- Parameters:
- map- the BinaryMap to use for storage for this BinaryStore implementation
 
 
- 
- 
Method Details- 
getBinaryMapObtain the underlying BinaryMap.- Returns:
- the BinaryMap that this BinaryStore sits on top of
 
- 
loadReturn the value associated with the specified key, or null if the key does not have an associated value in the underlying store.- Specified by:
- loadin interface- BinaryStore
- 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
 
- 
storeStore 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.- Specified by:
- storein interface- BinaryStore
- Parameters:
- binKey- key to store the value under
- binValue- value to be stored
 
- 
eraseRemove the specified key from the underlying store if present.- Specified by:
- erasein interface- BinaryStore
- Parameters:
- binKey- key whose mapping is to be removed from the map
 
- 
eraseAllpublic void eraseAll()Remove all data from the underlying store.- Specified by:
- eraseAllin interface- BinaryStore
 
- 
keysIterate all keys in the underlying store.- Specified by:
- keysin interface- BinaryStore
- Returns:
- a read-only iterator of the keys in the underlying store
 
- 
sizepublic int size()Determine the number of keys in the BinaryStore.- Specified by:
- sizein interface- BinaryStore.SizeAware
- Returns:
- the number of keys in the BinaryStore
 
- 
disposepublic void dispose()Invoked when all resources owned by the implementer can safely be released.Once disposed of the object should no longer be considered to be usable. Note the Disposable interface is compatible with try-with-resources which will automatically invoke this method. - Specified by:
- disposein interface- Disposable
 
- 
closepublic void close()Deprecated.use the Disposable interface insteadRelease underlying resources.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Disposable
 
 
-