| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
BackendTransaction.getStoreTransaction() |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractStoreTransaction
Abstract implementation of
StoreTransaction to be used as the basis for more specific implementations. |
class |
NoOpStoreTransaction
Dummy transaction object that does nothing
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DistributedStoreManager.sleepAfterWrite(StoreTransaction txh,
DistributedStoreManager.MaskedTimestamp mustPass)
This method attempts to generate Rid in the following three ways, in order,
returning the value produced by the first successful attempt in the sequence.
|
| Constructor and Description |
|---|
DistributedStoreManager.MaskedTimestamp(StoreTransaction txh) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
ConsistentKeyIDAuthority.openTx() |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
StoreManager.beginTransaction(BaseTransactionConfig config)
Returns a transaction handle for a new transaction according to the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReadOnlyKeyColumnValueStore.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
void |
KeyColumnValueStore.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh)
Attempts to claim a lock on the value at the specified
key and
column pair. |
static boolean |
KCVSUtil.containsKey(KeyColumnValueStore store,
StaticBuffer key,
int maxColumnLength,
StoreTransaction txh) |
static boolean |
KCVSUtil.containsKey(KeyColumnValueStore store,
StaticBuffer key,
StoreTransaction txh) |
static boolean |
KCVSUtil.containsKeyColumn(KeyColumnValueStore store,
StaticBuffer key,
StaticBuffer column,
StoreTransaction txh)
Returns true if the specified key-column pair exists in the store.
|
static StaticBuffer |
KCVSUtil.get(KeyColumnValueStore store,
StaticBuffer key,
StaticBuffer column,
StoreTransaction txh)
Retrieves the value for the specified column and key under the given transaction
from the store if such exists, otherwise returns NULL
|
static KeyIterator |
KCVSUtil.getKeys(KeyColumnValueStore store,
StoreFeatures features,
int keyLength,
int sliceLength,
StoreTransaction txh)
If the store supports unordered scans, then call {#link
KeyColumnValueStore.getKeys(SliceQuery, StoreTransaction). |
KeyIterator |
ReadOnlyKeyColumnValueStore.getKeys(KeyRangeQuery keyQuery,
StoreTransaction txh) |
KeyIterator |
KeyColumnValueStore.getKeys(KeyRangeQuery query,
StoreTransaction txh)
Returns a
KeyIterator over all keys that fall within the key-range specified by the given query and have one or more columns matching the column-range. |
KeyIterator |
ReadOnlyKeyColumnValueStore.getKeys(SliceQuery columnQuery,
StoreTransaction txh) |
KeyIterator |
KeyColumnValueStore.getKeys(SliceQuery query,
StoreTransaction txh)
Returns a
KeyIterator over all keys in the store that have one or more columns matching the column-range. |
EntryList |
ReadOnlyKeyColumnValueStore.getSlice(KeySliceQuery query,
StoreTransaction txh) |
EntryList |
KeyColumnValueStore.getSlice(KeySliceQuery query,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
Map<StaticBuffer,EntryList> |
ReadOnlyKeyColumnValueStore.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
KeyColumnValueStore.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
void |
ReadOnlyKeyColumnValueStore.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
KeyColumnValueStore.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh)
Verifies acquisition of locks
txh from previous calls to
KeyColumnValueStore.acquireLock(StaticBuffer, StaticBuffer, StaticBuffer, StoreTransaction)
, then writes supplied additions and/or deletions to
key in the underlying data store. |
void |
KeyColumnValueStoreManager.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh)
Executes multiple mutations at once.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CacheTransaction |
| Modifier and Type | Method and Description |
|---|---|
protected StoreTransaction |
KCVSCache.getTx(StoreTransaction txh) |
StoreTransaction |
CacheTransaction.getWrappedTransaction() |
| Constructor and Description |
|---|
CacheTransaction(StoreTransaction tx,
KeyColumnValueStoreManager manager,
int persistChunkSize,
Duration maxWriteTime,
boolean batchLoading) |
CacheTransaction(StoreTransaction tx,
KeyColumnValueStoreManager manager,
int persistChunkSize,
Duration maxWriteTime,
boolean batchLoading,
int expectedNumStores) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
InMemoryStoreManager.beginTransaction(BaseTransactionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
InMemoryKeyColumnValueStore.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
KeyIterator |
InMemoryKeyColumnValueStore.getKeys(KeyRangeQuery query,
StoreTransaction txh) |
KeyIterator |
InMemoryKeyColumnValueStore.getKeys(SliceQuery query,
StoreTransaction txh) |
EntryList |
InMemoryKeyColumnValueStore.getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
InMemoryKeyColumnValueStore.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
void |
InMemoryKeyColumnValueStore.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
InMemoryStoreManager.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
OrderedKeyValueStoreManagerAdapter.beginTransaction(BaseTransactionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
OrderedKeyValueStoreAdapter.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
void |
KeyValueStore.acquireLock(StaticBuffer key,
StaticBuffer expectedValue,
StoreTransaction txh)
Acquires a lock for the given key and expected value (null, if not value is expected).
|
boolean |
KeyValueStore.containsKey(StaticBuffer key,
StoreTransaction txh)
Returns true iff the store contains the given key, else false
|
void |
KeyValueStore.delete(StaticBuffer key,
StoreTransaction txh)
Deletes the given key from the store.
|
StaticBuffer |
KeyValueStore.get(StaticBuffer key,
StoreTransaction txh)
Returns the value associated with the given key.
|
KeyIterator |
OrderedKeyValueStoreAdapter.getKeys(KeyRangeQuery keyQuery,
StoreTransaction txh) |
KeyIterator |
OrderedKeyValueStoreAdapter.getKeys(SliceQuery columnQuery,
StoreTransaction txh) |
EntryList |
OrderedKeyValueStoreAdapter.getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
BaseKeyColumnValueAdapter.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
static EntryList |
KVUtil.getSlice(OrderedKeyValueStore store,
StaticBuffer keyStart,
StaticBuffer keyEnd,
int limit,
StoreTransaction txh) |
static EntryList |
KVUtil.getSlice(OrderedKeyValueStore store,
StaticBuffer keyStart,
StaticBuffer keyEnd,
StoreTransaction txh) |
RecordIterator<KeyValueEntry> |
OrderedKeyValueStore.getSlice(StaticBuffer keyStart,
StaticBuffer keyEnd,
KeySelector selector,
StoreTransaction txh)
Returns a list of all Key-value pairs (
KeyValueEntry where the key lies between keyStart (inclusive) and keyEnd (exclusive)
and such that they match the specified KeySelector. |
void |
OrderedKeyValueStore.insert(StaticBuffer key,
StaticBuffer value,
StoreTransaction txh)
Inserts the given key-value pair into the store.
|
void |
OrderedKeyValueStoreAdapter.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
OrderedKeyValueStoreManager.mutateMany(Map<String,KVMutation> mutations,
StoreTransaction txh)
Executes multiple mutations at once.
|
void |
OrderedKeyValueStoreManagerAdapter.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
| Modifier and Type | Field and Description |
|---|---|
protected LocalLockMediator<StoreTransaction> |
AbstractLocker.llm
Resolves lock contention by multiple threads.
|
protected LocalLockMediator<StoreTransaction> |
AbstractLocker.Builder.llm |
| Modifier and Type | Method and Description |
|---|---|
protected abstract LocalLockMediator<StoreTransaction> |
AbstractLocker.Builder.getDefaultMediator()
Get the default
LocalLockMediator for Locker being built. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractLocker.checkLocks(StoreTransaction tx) |
void |
Locker.checkLocks(StoreTransaction tx)
Verify that all previous
Locker.writeLock(KeyColumn, StoreTransaction)
calls with tx actually succeeded. |
protected abstract void |
AbstractLocker.checkSingleLock(KeyColumn lockID,
S lockStatus,
StoreTransaction tx)
Try to verify that the lock identified by
lockID is already held
by tx. |
void |
AbstractLocker.deleteLocks(StoreTransaction tx) |
void |
Locker.deleteLocks(StoreTransaction tx)
Release every lock currently held by
tx. |
protected abstract void |
AbstractLocker.deleteSingleLock(KeyColumn lockID,
S lockStatus,
StoreTransaction tx)
Try to unlock/release/delete the lock identified by
lockID and
both held by and verified for tx. |
Map<KeyColumn,S> |
LockerState.getLocksForTx(StoreTransaction tx) |
boolean |
LockerState.has(StoreTransaction tx,
KeyColumn kc) |
void |
LockerState.release(StoreTransaction tx,
KeyColumn kc) |
void |
LockerState.take(StoreTransaction tx,
KeyColumn kc,
S ls) |
void |
AbstractLocker.writeLock(KeyColumn lockID,
StoreTransaction tx) |
void |
Locker.writeLock(KeyColumn lockID,
StoreTransaction tx)
Attempt to acquire/take/claim/write the lock named by
lockID. |
protected abstract S |
AbstractLocker.writeSingleLock(KeyColumn lockID,
StoreTransaction tx)
Try to take/acquire/write/claim a lock uniquely identified within this
Locker by the lockID argument on behalf of tx. |
| Modifier and Type | Method and Description |
|---|---|
B |
AbstractLocker.Builder.mediator(LocalLockMediator<StoreTransaction> mediator) |
| Constructor and Description |
|---|
AbstractLocker(StaticBuffer rid,
TimestampProvider times,
ConsistentKeyLockerSerializer serializer,
LocalLockMediator<StoreTransaction> llm,
LockerState<S> lockState,
Duration lockExpire,
org.slf4j.Logger log) |
LockerState(ConcurrentMap<StoreTransaction,Map<KeyColumn,S>> locks) |
| Modifier and Type | Class and Description |
|---|---|
class |
ExpectedValueCheckingTransaction
A
StoreTransaction that supports locking via
LocalLockMediator and writing and reading lock records in a
ExpectedValueCheckingStore. |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
ExpectedValueCheckingStoreManager.beginTransaction(BaseTransactionConfig configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected LocalLockMediator<StoreTransaction> |
ConsistentKeyLocker.Builder.getDefaultMediator() |
| Modifier and Type | Method and Description |
|---|---|
void |
ExpectedValueCheckingStore.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh)
Attempts to claim a lock on the value at the specified
key and
column pair. |
protected void |
ConsistentKeyLocker.checkSingleLock(KeyColumn kc,
ConsistentKeyLockStatus ls,
StoreTransaction tx) |
void |
LockCleanerService.clean(KeyColumn target,
long cutoff,
StoreTransaction tx) |
void |
StandardLockCleanerService.clean(KeyColumn target,
long cutoff,
StoreTransaction tx) |
protected void |
ConsistentKeyLocker.deleteSingleLock(KeyColumn kc,
ConsistentKeyLockStatus ls,
StoreTransaction tx) |
KeyIterator |
ExpectedValueCheckingStore.getKeys(KeyRangeQuery query,
StoreTransaction txh) |
KeyIterator |
ExpectedValueCheckingStore.getKeys(SliceQuery query,
StoreTransaction txh) |
EntryList |
ExpectedValueCheckingStore.getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
ExpectedValueCheckingStore.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
void |
ExpectedValueCheckingStore.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh)
Verifies acquisition of locks
txh from previous calls to
KeyColumnValueStore.acquireLock(StaticBuffer, StaticBuffer, StaticBuffer, StoreTransaction)
, then writes supplied additions and/or deletions to
key in the underlying data store. |
void |
ExpectedValueCheckingStoreManager.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
protected ConsistentKeyLockStatus |
ConsistentKeyLocker.writeSingleLock(KeyColumn lockID,
StoreTransaction txh)
Try to write a lock record remotely up to the configured number of
times.
|
| Constructor and Description |
|---|
ExpectedValueCheckingTransaction(StoreTransaction dataTx,
StoreTransaction lockTx,
Duration maxReadTime) |
StandardLockCleanerRunnable(KeyColumnValueStore store,
KeyColumn target,
StoreTransaction tx,
ConsistentKeyLockerSerializer serializer,
long cutoff) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
KCVSLog.openTx() |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
BackendOperation.TransactionalProvider.openTx() |
| Modifier and Type | Method and Description |
|---|---|
void |
MetricInstrumentedStore.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
R |
BackendOperation.Transactional.call(StoreTransaction txh) |
KeyIterator |
MetricInstrumentedStore.getKeys(KeyRangeQuery query,
StoreTransaction txh) |
KeyIterator |
MetricInstrumentedStore.getKeys(SliceQuery query,
StoreTransaction txh) |
EntryList |
MetricInstrumentedStore.getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
MetricInstrumentedStore.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
void |
MetricInstrumentedStore.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
Copyright © 2012–2014. All rights reserved.