public final class ListKeys extends RiakCommand<ListKeys.Response,Namespace>
This command is used to retrieve a list of all keys in a bucket. The response is iterable and contains a list of Locations.
Namespace ns = new Namespace("my_type", "my_bucket");
ListKeys lk = ListKeys.Builder(ns).build();
ListKeys.Response response = client.execute(lk);
for (Location l : response)
{
System.out.println(l.getKeyAsString());
}
This is a very expensive operation and is not recommended for use on a production system
Modifier and Type | Class and Description |
---|---|
static class |
ListKeys.Builder
Used to construct a ListKeys command.
|
static class |
ListKeys.Response |
Modifier and Type | Method and Description |
---|---|
protected RiakFuture<ListKeys.Response,Namespace> |
executeAsync(RiakCluster cluster) |
execute
protected final RiakFuture<ListKeys.Response,Namespace> executeAsync(RiakCluster cluster)
executeAsync
in class RiakCommand<ListKeys.Response,Namespace>
Copyright © 2014. All rights reserved.