Interface ReadOnlyMetastorage
-
- All Known Subinterfaces:
ReadWriteMetastorage
- All Known Implementing Classes:
MetaStorage
public interface ReadOnlyMetastorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiditerate(String keyPrefix, BiConsumer<String,? super Serializable> cb, boolean unmarshal)Read all key/value pairs where key has provided prefix.Serializableread(String key)byte[]readRaw(String key)
-
-
-
Method Detail
-
read
Serializable read(String key) throws IgniteCheckedException
- Throws:
IgniteCheckedException
-
readRaw
byte[] readRaw(String key) throws IgniteCheckedException
- Throws:
IgniteCheckedException
-
iterate
void iterate(String keyPrefix, BiConsumer<String,? super Serializable> cb, boolean unmarshal) throws IgniteCheckedException
Read all key/value pairs where key has provided prefix. It is guaranteed that callback will be applied to matching keys in ascending order.- Parameters:
keyPrefix- Key prefix.cb- Callback to invoke on each matching key/value pair.unmarshal-Trueif object passed intocbshould be unmarshalled.- Throws:
IgniteCheckedException- If failed.
-
-