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. |
Constructor and Description |
---|
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.
|
StoreTransaction |
KCVSManagerProxy.beginTransaction(BaseTransactionConfig config) |
protected StoreTransaction |
KCVSProxy.unwrapTx(StoreTransaction txh) |
Modifier and Type | Method and Description |
---|---|
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. |
void |
KCVSProxy.acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
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,
SliceQuery slice,
StoreFeatures features,
int keyLength,
StoreTransaction txh) |
static KeyIterator |
KCVSUtil.getKeys(KeyColumnValueStore store,
StoreFeatures features,
int keyLength,
int sliceLength,
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 |
KCVSProxy.getKeys(KeyRangeQuery keyQuery,
StoreTransaction txh) |
KeySlicesIterator |
KeyColumnValueStore.getKeys(MultiSlicesQuery queries,
StoreTransaction txh)
Returns a
KeySlicesIterator over all keys in the store that have one or more columns matching the column-range. |
KeySlicesIterator |
KCVSProxy.getKeys(MultiSlicesQuery queries,
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. |
KeyIterator |
KCVSProxy.getKeys(SliceQuery columnQuery,
StoreTransaction txh) |
EntryList |
KeyColumnValueStore.getSlice(KeySliceQuery query,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
EntryList |
KCVSProxy.getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
KeyColumnValueStore.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
Map<StaticBuffer,EntryList> |
KCVSProxy.getSlice(List<StaticBuffer> keys,
SliceQuery query,
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 |
KCVSProxy.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
KCVSManagerProxy.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
void |
KeyColumnValueStoreManager.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh)
Executes multiple mutations at once.
|
protected StoreTransaction |
KCVSProxy.unwrapTx(StoreTransaction txh) |
Modifier and Type | Class and Description |
---|---|
class |
CacheTransaction |
Modifier and Type | Method and Description |
---|---|
StoreTransaction |
CacheTransaction.getWrappedTransaction() |
protected StoreTransaction |
KCVSCache.unwrapTx(StoreTransaction txh) |
Modifier and Type | Method and Description |
---|---|
EntryList |
ExpirationKCVSCache.getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
ExpirationKCVSCache.getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
EntryList |
KCVSCache.getSliceNoCache(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
KCVSCache.getSliceNoCache(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
protected void |
KCVSCache.incActionBy(int by,
CacheMetricsAction action,
StoreTransaction txh) |
void |
KCVSCache.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
KCVSCache.mutateEntries(StaticBuffer key,
List<Entry> additions,
List<Entry> deletions,
StoreTransaction txh) |
protected StoreTransaction |
KCVSCache.unwrapTx(StoreTransaction txh) |
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 |
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) |
KeySlicesIterator |
OrderedKeyValueStoreAdapter.getKeys(MultiSlicesQuery queries,
StoreTransaction txh) |
KeyIterator |
OrderedKeyValueStoreAdapter.getKeys(SliceQuery columnQuery,
StoreTransaction txh) |
EntryList |
OrderedKeyValueStoreAdapter.getSlice(KeySliceQuery query,
StoreTransaction txh) |
RecordIterator<KeyValueEntry> |
OrderedKeyValueStore.getSlice(KVQuery query,
StoreTransaction txh)
Returns a list of all Key-value pairs (
KeyValueEntry where the keys satisfy the given KVQuery . |
Map<StaticBuffer,EntryList> |
OrderedKeyValueStoreAdapter.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) |
Map<KVQuery,RecordIterator<KeyValueEntry>> |
OrderedKeyValueStore.getSlices(List<KVQuery> queries,
StoreTransaction txh)
Like
OrderedKeyValueStore.getSlice(KVQuery, org.janusgraph.diskstorage.keycolumnvalue.StoreTransaction) but executes
all of the given queries at once and returns a map of all the result sets of each query. |
void |
OrderedKeyValueStore.insert(StaticBuffer key,
StaticBuffer value,
StoreTransaction txh,
Integer ttl)
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 | Method and Description |
---|---|
void |
TTLKCVS.mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
TTLKCVSManager.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 |
ExpectedValueCheckingTransaction.getConsistentTx() |
StoreTransaction |
ExpectedValueCheckingTransaction.getInconsistentTx() |
protected StoreTransaction |
ExpectedValueCheckingStore.unwrapTx(StoreTransaction t) |
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 |
StandardLockCleanerService.clean(KeyColumn target,
Instant cutoff,
StoreTransaction tx) |
void |
LockCleanerService.clean(KeyColumn target,
Instant cutoff,
StoreTransaction tx) |
protected void |
ConsistentKeyLocker.deleteSingleLock(KeyColumn kc,
ConsistentKeyLockStatus ls,
StoreTransaction tx) |
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 StoreTransaction |
ExpectedValueCheckingStore.unwrapTx(StoreTransaction t) |
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 inconsistentTx,
StoreTransaction strongConsistentTx,
Duration maxReadTime) |
StandardLockCleanerRunnable(KeyColumnValueStore store,
KeyColumn target,
StoreTransaction tx,
ConsistentKeyLockerSerializer serializer,
Instant cutoff,
TimestampProvider times) |
Modifier and Type | Method and Description |
---|---|
StoreTransaction |
KCVSLog.openTx() |
Modifier and Type | Method and Description |
---|---|
StoreTransaction |
MetricInstrumentedStoreManager.beginTransaction(BaseTransactionConfig config) |
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) |
KeySlicesIterator |
MetricInstrumentedStore.getKeys(MultiSlicesQuery queries,
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) |
void |
MetricInstrumentedStoreManager.mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
Copyright © 2012–2023. All rights reserved.