public class SetsOnGrpc extends Object implements com.salesforce.cantor.Sets
| Constructor and Description |
|---|
SetsOnGrpc(String target) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String namespace,
String set,
Map<String,Long> entries) |
void |
add(String namespace,
String set,
String entry,
long weight) |
void |
create(String namespace) |
void |
delete(String namespace,
String set,
Collection<String> entries) |
void |
delete(String namespace,
String set,
long min,
long max) |
boolean |
delete(String namespace,
String set,
String entry) |
void |
drop(String namespace) |
Collection<String> |
entries(String namespace,
String set,
long min,
long max,
int start,
int count,
boolean ascending) |
Map<String,Long> |
get(String namespace,
String set,
long min,
long max,
int start,
int count,
boolean ascending) |
long |
inc(String namespace,
String set,
String entry,
long count) |
Map<String,Long> |
intersect(String namespace,
Collection<String> sets,
long min,
long max,
int start,
int count,
boolean ascending) |
Collection<String> |
namespaces() |
Map<String,Long> |
pop(String namespace,
String set,
long min,
long max,
int start,
int count,
boolean ascending) |
Collection<String> |
sets(String namespace) |
int |
size(String namespace,
String set) |
Map<String,Long> |
union(String namespace,
Collection<String> sets,
long min,
long max,
int start,
int count,
boolean ascending) |
Long |
weight(String namespace,
String set,
String entry) |
public SetsOnGrpc(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 Map<String,Long> get(String namespace, String set, long min, long max, int start, int count, boolean ascending) throws IOException
get in interface com.salesforce.cantor.SetsIOExceptionpublic Map<String,Long> union(String namespace, Collection<String> sets, long min, long max, int start, int count, boolean ascending) throws IOException
union in interface com.salesforce.cantor.SetsIOExceptionpublic Map<String,Long> intersect(String namespace, Collection<String> sets, long min, long max, int start, int count, boolean ascending) throws IOException
intersect in interface com.salesforce.cantor.SetsIOExceptionpublic Map<String,Long> pop(String namespace, String set, long min, long max, int start, int count, boolean ascending) throws IOException
pop in interface com.salesforce.cantor.SetsIOExceptionpublic void add(String namespace, String set, String entry, long weight) throws IOException
add in interface com.salesforce.cantor.SetsIOExceptionpublic void add(String namespace, String set, Map<String,Long> entries) throws IOException
add in interface com.salesforce.cantor.SetsIOExceptionpublic void delete(String namespace, String set, long min, long max) throws IOException
delete in interface com.salesforce.cantor.SetsIOExceptionpublic boolean delete(String namespace, String set, String entry) throws IOException
delete in interface com.salesforce.cantor.SetsIOExceptionpublic void delete(String namespace, String set, Collection<String> entries) throws IOException
delete in interface com.salesforce.cantor.SetsIOExceptionpublic Collection<String> entries(String namespace, String set, long min, long max, int start, int count, boolean ascending) throws IOException
entries in interface com.salesforce.cantor.SetsIOExceptionpublic Collection<String> sets(String namespace) throws IOException
sets in interface com.salesforce.cantor.SetsIOExceptionpublic int size(String namespace, String set) throws IOException
size in interface com.salesforce.cantor.SetsIOExceptionpublic Long weight(String namespace, String set, String entry) throws IOException
weight in interface com.salesforce.cantor.SetsIOExceptionpublic long inc(String namespace, String set, String entry, long count) throws IOException
inc in interface com.salesforce.cantor.SetsIOExceptionCopyright © 2022. All rights reserved.