public class DBTripleRegistry extends Object implements KiWiTripleRegistry
| Constructor and Description |
|---|
DBTripleRegistry(KiWiStore store) |
| Modifier and Type | Method and Description |
|---|---|
protected KiWiConnection |
aqcuireConnection() |
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.
|
protected void |
releaseConnection(KiWiConnection con) |
void |
releaseTransaction(long transactionId)
Free all registry entries claimed by the transaction with the given identifier.
|
public DBTripleRegistry(KiWiStore store)
public void registerKey(IntArray key, long transactionId, long tripleId)
KiWiTripleRegistryregisterKey in interface KiWiTripleRegistrykey - 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)
KiWiTripleRegistrylookupKey in interface KiWiTripleRegistrykey - the key identifying the triple arguments (subject, object, predicate, context)public void releaseTransaction(long transactionId)
KiWiTripleRegistryreleaseTransaction in interface KiWiTripleRegistrytransactionId - the identifier of the transaction registering the triple idpublic void deleteKey(IntArray key)
KiWiTripleRegistrydeleteKey in interface KiWiTripleRegistrykey - the key identifying the triple arguments (subject, object, predicate, context)protected KiWiConnection aqcuireConnection()
protected void releaseConnection(KiWiConnection con)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.