public class VBucketStore extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
VBucketStore.ItemAction |
| Modifier and Type | Field and Description |
|---|---|
VBucketStore.ItemAction |
onItemDelete |
VBucketStore.ItemAction |
onItemMutated |
| Constructor and Description |
|---|
VBucketStore(VBucketInfo[] vbi) |
| Modifier and Type | Method and Description |
|---|---|
MutationStatus |
add(Item item,
boolean xerrorEnabled) |
MutationStatus |
append(Item i,
boolean xerrorEnabled) |
static int |
convertExpiryTime(int original)
Converts an expiration value to an absolute Unix timestamp.
|
MutationStatus |
delete(KeySpec ks,
long cas,
boolean xerrorEnabled) |
VBucketCoordinates |
findCoords(int vbid,
long uuid) |
Item |
get(KeySpec ks) |
VBucketCoordinates |
getCurrentCoords(int vbid) |
Map<KeySpec,Item> |
getMap() |
Item |
getRandom() |
ErrorCode |
lock(Item item,
int expiry) |
MutationStatus |
prepend(Item i,
boolean xerrorEnabled) |
MutationStatus |
replace(Item item,
boolean xerrorEnabled) |
MutationStatus |
set(Item item,
boolean xerrorEnabled) |
ErrorCode |
touch(Item item,
int expiry,
boolean xerrorEnabled) |
public VBucketStore.ItemAction onItemDelete
public VBucketStore.ItemAction onItemMutated
public VBucketStore(VBucketInfo[] vbi)
public VBucketCoordinates findCoords(int vbid, long uuid)
public VBucketCoordinates getCurrentCoords(int vbid)
public MutationStatus add(Item item, boolean xerrorEnabled)
public MutationStatus replace(Item item, boolean xerrorEnabled)
public MutationStatus set(Item item, boolean xerrorEnabled)
public MutationStatus delete(KeySpec ks, long cas, boolean xerrorEnabled)
public MutationStatus append(Item i, boolean xerrorEnabled)
public MutationStatus prepend(Item i, boolean xerrorEnabled)
public Item getRandom()
public static int convertExpiryTime(int original)
original - The original value passed in from the client. This can
be a relative or absolute (unix) timestampCopyright © 2017. All rights reserved.