| Package | Description |
|---|---|
| org.gridgain.grid.spi.swapspace |
Contains APIs for swap space SPI.
|
| org.gridgain.grid.spi.swapspace.file |
Contains file-based swap space SPI.
|
| org.gridgain.grid.spi.swapspace.noop |
Contains default no-op swap space SPI implementation.
|
| Modifier and Type | Method and Description |
|---|---|
<K> GridSpiCloseableIterator<K> |
GridSwapSpaceSpi.keyIterator(String spaceName,
GridSwapContext ctx)
Gets iterator over space keys.
|
byte[] |
GridSwapSpaceSpi.read(String spaceName,
GridSwapKey key,
GridSwapContext ctx)
Reads stored value as array of bytes by key from data space with given name.
|
Map<GridSwapKey,byte[]> |
GridSwapSpaceSpi.readAll(String spaceName,
Iterable<GridSwapKey> keys,
GridSwapContext ctx)
Reads stored values as array of bytes by all passed keys from data space with
given name.
|
void |
GridSwapSpaceSpi.remove(String spaceName,
GridSwapKey key,
GridInClosure<byte[]> c,
GridSwapContext ctx)
Removes value stored in data space with given name corresponding to specified key.
|
void |
GridSwapSpaceSpi.removeAll(String spaceName,
Collection<GridSwapKey> keys,
GridBiInClosure<GridSwapKey,byte[]> c,
GridSwapContext ctx)
Removes values stored in data space with given name corresponding to specified keys.
|
void |
GridSwapSpaceSpi.store(String spaceName,
GridSwapKey key,
byte[] val,
GridSwapContext ctx)
Stores value as array of bytes with given key into data space with given name.
|
void |
GridSwapSpaceSpi.storeAll(String spaceName,
Map<GridSwapKey,byte[]> pairs,
GridSwapContext ctx)
Stores key-value pairs (both keys and values are arrays of bytes) into data
space with given name.
|
| Modifier and Type | Method and Description |
|---|---|
<K> GridSpiCloseableIterator<K> |
GridFileSwapSpaceSpi.keyIterator(String spaceName,
GridSwapContext ctx)
Gets iterator over space keys.
|
byte[] |
GridFileSwapSpaceSpi.read(String spaceName,
GridSwapKey key,
GridSwapContext ctx)
Reads stored value as array of bytes by key from data space with given name.
|
Map<GridSwapKey,byte[]> |
GridFileSwapSpaceSpi.readAll(String spaceName,
Iterable<GridSwapKey> keys,
GridSwapContext ctx)
Reads stored values as array of bytes by all passed keys from data space with
given name.
|
void |
GridFileSwapSpaceSpi.remove(String spaceName,
GridSwapKey key,
GridInClosure<byte[]> c,
GridSwapContext ctx)
Removes value stored in data space with given name corresponding to specified key.
|
void |
GridFileSwapSpaceSpi.removeAll(String spaceName,
Collection<GridSwapKey> keys,
GridBiInClosure<GridSwapKey,byte[]> c,
GridSwapContext ctx)
Removes values stored in data space with given name corresponding to specified keys.
|
void |
GridFileSwapSpaceSpi.store(String spaceName,
GridSwapKey key,
byte[] val,
GridSwapContext ctx)
Stores value as array of bytes with given key into data space with given name.
|
void |
GridFileSwapSpaceSpi.storeAll(String spaceName,
Map<GridSwapKey,byte[]> pairs,
GridSwapContext ctx)
Stores key-value pairs (both keys and values are arrays of bytes) into data
space with given name.
|
| Modifier and Type | Method and Description |
|---|---|
<K> GridSpiCloseableIterator<K> |
GridNoopSwapSpaceSpi.keyIterator(String spaceName,
GridSwapContext ctx)
Gets iterator over space keys.
|
byte[] |
GridNoopSwapSpaceSpi.read(String spaceName,
GridSwapKey key,
GridSwapContext ctx)
Reads stored value as array of bytes by key from data space with given name.
|
Map<GridSwapKey,byte[]> |
GridNoopSwapSpaceSpi.readAll(String spaceName,
Iterable<GridSwapKey> keys,
GridSwapContext ctx)
Reads stored values as array of bytes by all passed keys from data space with
given name.
|
void |
GridNoopSwapSpaceSpi.remove(String spaceName,
GridSwapKey key,
GridInClosure<byte[]> c,
GridSwapContext ctx)
Removes value stored in data space with given name corresponding to specified key.
|
void |
GridNoopSwapSpaceSpi.removeAll(String spaceName,
Collection<GridSwapKey> keys,
GridBiInClosure<GridSwapKey,byte[]> c,
GridSwapContext ctx)
Removes values stored in data space with given name corresponding to specified keys.
|
void |
GridNoopSwapSpaceSpi.store(String spaceName,
GridSwapKey key,
byte[] val,
GridSwapContext ctx)
Stores value as array of bytes with given key into data space with given name.
|
void |
GridNoopSwapSpaceSpi.storeAll(String spaceName,
Map<GridSwapKey,byte[]> pairs,
GridSwapContext ctx)
Stores key-value pairs (both keys and values are arrays of bytes) into data
space with given name.
|
Copyright © 2014. All rights reserved.