@PublicApi public interface KeyValueStoreReader extends Closeable, KeyValueIterable
Modifier and Type | Method and Description |
---|---|
byte[] |
get(byte[] key)
Gets the value associated with
key , returns null if not found. |
ByteBuffer |
get(ByteBuffer key)
Gets the value associated with
key , returns null if not found. |
int |
size() |
iterator
byte[] get(byte[] key) throws IOException, AlluxioException
key
, returns null if not found. When getting large
values (e.g., larger than 10KB), get(ByteBuffer)
might be more efficient by taking
advantage from zero-copy.key
- key to get, cannot be nullIOException
AlluxioException
ByteBuffer get(ByteBuffer key) throws IOException, AlluxioException
key
, returns null if not found.key
- key to get, cannot be nullIOException
AlluxioException
int size() throws IOException, AlluxioException
IOException
AlluxioException
Copyright © 2023. All Rights Reserved.