public class RiakObject extends Object
Constructor and Description |
---|
RiakObject(com.google.protobuf.ByteString bucket,
com.google.protobuf.ByteString key,
com.google.protobuf.ByteString content) |
RiakObject(com.google.protobuf.ByteString vclock,
com.google.protobuf.ByteString bucket,
com.google.protobuf.ByteString key,
com.google.protobuf.ByteString content) |
RiakObject(String bucket,
String key,
byte[] content) |
RiakObject(String bucket,
String key,
String content) |
Modifier and Type | Method and Description |
---|---|
RiakObject |
addIndex(String name,
long value)
Add an int index to this object
|
RiakObject |
addIndex(String name,
String value)
Add a binary index to the object
|
void |
addLink(com.google.protobuf.ByteString tag,
com.google.protobuf.ByteString bucket,
com.google.protobuf.ByteString key) |
void |
addLink(String tag,
String bucket,
String key) |
RiakObject |
addUsermetaItem(String key,
String value)
Add an item to the user meta data for this RiakObject.
|
String |
getBucket() |
com.google.protobuf.ByteString |
getBucketBS() |
String |
getCharset() |
String |
getContentType() |
boolean |
getDeleted() |
List<RiakIndex> |
getIndexes() |
String |
getKey() |
com.google.protobuf.ByteString |
getKeyBS() |
Date |
getLastModified() |
List<RiakLink> |
getLinks() |
Map<String,String> |
getUsermeta()
Return a copy of the user meta data map (does not read or write through
to map backing RiakObject)
|
com.google.protobuf.ByteString |
getValue() |
com.google.protobuf.ByteString |
getVclock() |
String |
getVtag() |
void |
setCharset(String charset) |
void |
setContentType(String contentType) |
public RiakObject(com.google.protobuf.ByteString vclock, com.google.protobuf.ByteString bucket, com.google.protobuf.ByteString key, com.google.protobuf.ByteString content)
public RiakObject(com.google.protobuf.ByteString bucket, com.google.protobuf.ByteString key, com.google.protobuf.ByteString content)
public com.google.protobuf.ByteString getBucketBS()
public String getBucket()
public com.google.protobuf.ByteString getKeyBS()
public String getKey()
public boolean getDeleted()
public com.google.protobuf.ByteString getVclock()
public com.google.protobuf.ByteString getValue()
public String getVtag()
public void setContentType(String contentType)
public void setCharset(String charset)
public void addLink(com.google.protobuf.ByteString tag, com.google.protobuf.ByteString bucket, com.google.protobuf.ByteString key)
public Map<String,String> getUsermeta()
public RiakObject addUsermetaItem(String key, String value)
key
- the key of the user meta data itemvalue
- the user meta data itempublic Date getLastModified()
public String getContentType()
public String getCharset()
public List<RiakIndex> getIndexes()
RiakIndex
es for this objectpublic RiakObject addIndex(String name, String value)
name
- of the indexvalue
- the value to add to the indexpublic RiakObject addIndex(String name, long value)
name
- of the indexvalue
- the value to add to the indexCopyright © 2014. All Rights Reserved.