public class ObjectsOnGrpc extends Object implements com.salesforce.cantor.Objects
| Constructor and Description |
|---|
ObjectsOnGrpc(String target) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(String namespace) |
void |
delete(String namespace,
Collection<String> keys) |
boolean |
delete(String namespace,
String key) |
void |
drop(String namespace) |
Map<String,byte[]> |
get(String namespace,
Collection<String> keys) |
byte[] |
get(String namespace,
String key) |
Collection<String> |
keys(String namespace,
int start,
int count) |
Collection<String> |
namespaces() |
int |
size(String namespace) |
void |
store(String namespace,
Map<String,byte[]> batch) |
void |
store(String namespace,
String key,
byte[] bytes) |
public ObjectsOnGrpc(String target)
public Collection<String> namespaces() throws IOException
namespaces in interface com.salesforce.cantor.NamespaceableIOExceptionpublic void create(String namespace) throws IOException
create in interface com.salesforce.cantor.NamespaceableIOExceptionpublic void drop(String namespace) throws IOException
drop in interface com.salesforce.cantor.NamespaceableIOExceptionpublic Collection<String> keys(String namespace, int start, int count) throws IOException
keys in interface com.salesforce.cantor.ObjectsIOExceptionpublic void store(String namespace, String key, byte[] bytes) throws IOException
store in interface com.salesforce.cantor.ObjectsIOExceptionpublic void store(String namespace, Map<String,byte[]> batch) throws IOException
store in interface com.salesforce.cantor.ObjectsIOExceptionpublic byte[] get(String namespace, String key) throws IOException
get in interface com.salesforce.cantor.ObjectsIOExceptionpublic Map<String,byte[]> get(String namespace, Collection<String> keys) throws IOException
get in interface com.salesforce.cantor.ObjectsIOExceptionpublic boolean delete(String namespace, String key) throws IOException
delete in interface com.salesforce.cantor.ObjectsIOExceptionpublic void delete(String namespace, Collection<String> keys) throws IOException
delete in interface com.salesforce.cantor.ObjectsIOExceptionpublic int size(String namespace) throws IOException
size in interface com.salesforce.cantor.ObjectsIOExceptionCopyright © 2022. All rights reserved.