public class LinkWalk extends Object implements RiakOperation<WalkResult>
IRiakClient.walk(IRiakObject)
Constructor and Description |
---|
LinkWalk(RawClient client,
IRiakObject startObject)
Create a Link Walk operation that will be executed with
client , starting from startObject |
Modifier and Type | Method and Description |
---|---|
LinkWalk |
addStep(String bucket,
String tag)
Add a link walking step to this link walk using the default accumulate
value for the step (NO for all steps accept last step)
|
LinkWalk |
addStep(String bucket,
String tag,
boolean keep)
Add a link walking step to this link walk
|
LinkWalk |
addStep(String bucket,
String tag,
LinkWalkStep.Accumulate accumulate)
Add a link walking step to this link walk
|
WalkResult |
execute()
Run the Link Walk query on the
RawClient the operation was constructed with. |
public LinkWalk(RawClient client, IRiakObject startObject)
client
, starting from startObject
client
- the RawClient
to usestartObject
- the IRiakObject
to start frompublic WalkResult execute() throws RiakException
RawClient
the operation was constructed with.execute
in interface RiakOperation<WalkResult>
WalkResult
RiakException
public LinkWalk addStep(String bucket, String tag, LinkWalkStep.Accumulate accumulate)
bucket
- the bucket, a null, or empty string is treated as the wildcardtag
- the tag of the link, a null or empty string is treated as the
wildcardaccumulate
- to keep the result of this step or notpublic LinkWalk addStep(String bucket, String tag, boolean keep)
bucket
- the bucket, a null, or empty string is treated as the wildcard _tag
- the tag of the link, a null or empty string is treated as the
wildcardaccumulate
- to keep the result of this step or notpublic LinkWalk addStep(String bucket, String tag)
bucket
- the bucket, a null, or empty string is treated as the wildcard _tag
- the tag of the link, a null or empty string is treated as the
wildcardCopyright © 2013. All Rights Reserved.