Package com.thinkaurelius.titan.diskstorage.util

Examples of com.thinkaurelius.titan.diskstorage.util.KeyColumn


        Map<KeyColumn, S> m = lockState.getLocksForTx(tx);

        Iterator<KeyColumn> iter = m.keySet().iterator();
        while (iter.hasNext()) {
            KeyColumn kc = iter.next();
            S ls = m.get(kc);
            try {
                deleteSingleLock(kc, ls, tx);
            } catch (AssertionError ae) {
                throw ae; // Concession to ease testing with mocks & behavior verification
View Full Code Here


    public void acquireLock(StaticBuffer key, StaticBuffer column, StaticBuffer expectedValue, StoreTransaction txh) throws StorageException {
        if (locker != null) {
            ExpectedValueCheckingTransaction tx = (ExpectedValueCheckingTransaction) txh;
            if (tx.isMutationStarted())
                throw new PermanentLockingException("Attempted to obtain a lock after mutations had been persisted");
            KeyColumn lockID = new KeyColumn(key, column);
            log.debug("Attempting to acquireLock on {} ev={}", lockID, expectedValue);
            locker.writeLock(lockID, tx.getConsistentTransaction());
            tx.storeExpectedValue(this, lockID, expectedValue);
        } else {
            dataStore.acquireLock(key, column, expectedValue, getBaseTx(txh));
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.diskstorage.util.KeyColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.