public class CacheTripleRegistry extends Object implements KiWiTripleRegistry
Constructor and Description |
---|
CacheTripleRegistry(CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
void |
deleteKey(IntArray key)
Remove the key with the given key, e.g.
|
long |
lookupKey(IntArray key)
Check if another (or the same) transaction has already registered an ID for the triple with the
given key.
|
void |
registerKey(IntArray key,
long transactionId,
long tripleId)
Register a key/triple id pair in the triple registry for the given transaction ID.
|
void |
releaseTransaction(long transactionId)
Free all registry entries claimed by the transaction with the given identifier.
|
public CacheTripleRegistry(CacheManager cacheManager)
public void registerKey(IntArray key, long transactionId, long tripleId)
registerKey
in interface KiWiTripleRegistry
key
- the key identifying the triple arguments (subject, object, predicate, context)transactionId
- the identifier of the transaction registering the triple idtripleId
- the new triple identifierpublic long lookupKey(IntArray key)
lookupKey
in interface KiWiTripleRegistry
key
- the key identifying the triple arguments (subject, object, predicate, context)public void releaseTransaction(long transactionId)
releaseTransaction
in interface KiWiTripleRegistry
transactionId
- the identifier of the transaction registering the triple idpublic void deleteKey(IntArray key)
deleteKey
in interface KiWiTripleRegistry
key
- the key identifying the triple arguments (subject, object, predicate, context)Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.