com.basho.riak.client
Class RiakLink

java.lang.Object
  extended by com.basho.riak.client.RiakLink

public class RiakLink
extends Object

Models a link from one object to another in Riak.

Links are unidirectional and enable lightweight graph semantics in Riak. See the basho wiki for more details on links.

Immutable.

Author:
russell

Constructor Summary
RiakLink(RiakLink riakLink)
          Create a RiakLink that is a copy of another RiakLink.
RiakLink(String bucket, String key, String tag)
          Create a RiakLink from the specified parameters.
 
Method Summary
 boolean equals(Object obj)
           
 String getBucket()
           
 String getKey()
           
 String getTag()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RiakLink

public RiakLink(String bucket,
                String key,
                String tag)
Create a RiakLink from the specified parameters.

Parameters:
bucket - the bucket
key - the key
tag - the link tag

RiakLink

public RiakLink(RiakLink riakLink)
Create a RiakLink that is a copy of another RiakLink.

Parameters:
riakLink - the RiakLink to copy
Method Detail

getBucket

public String getBucket()
Returns:
the bucket

getKey

public String getKey()
Returns:
the key

getTag

public String getTag()
Returns:
the tag

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.