Examples of clearKey()


Examples of com.foundationdb.server.store.FDBTransactionService.TransactionState.clearKey()

    /** Clear contents of database based on <code>storeData</code>.
     * Usually, key comes from <code>storeData.rawKey</code> via {@link getKeyBytes}.
     */
    public void clear(FDBStore store, Session session, FDBStoreData storeData) {
        TransactionState txn = store.getTransaction(session, storeData);
        txn.clearKey(storeData.rawKey);
    }

    /** Set up <code>storeData.iterator</code> to iterate over group within the given
     * boundaries.
     */
 
View Full Code Here

Examples of com.foundationdb.server.store.FDBTransactionService.TransactionState.clearKey()

                               boolean doLock) {
        TransactionState txn = txnService.getTransaction(session);
        Key indexKey = createKey();
        constructIndexRow(session, indexKey, rowData, index, hKey, indexRow, spatialColumnHandler, zValue, false);
        byte[] packed = packedTuple(index, indexKey);
        txn.clearKey(packed);
    }

    @Override
    protected void lock(Session session, FDBStoreData storeData, RowDef rowDef, RowData rowData) {
        // None
View Full Code Here

Examples of com.foundationdb.server.store.FDBTransactionService.TransactionState.clearKey()

            TransactionState txn = fdbTxnService().getTransaction(session());
            if(changeGen) {
                txn.setBytes(fdbSchemaManager().getPackedGenKey(), BAD_PACKED_VALUE);
            }
            if(newValue == null) {
                txn.clearKey(key);
            } else {
                txn.setBytes(key, newValue);
            }
            try {
                fdbSchemaManager().getAis(session());
View Full Code Here

Examples of com.foundationdb.server.store.FDBTransactionService.TransactionState.clearKey()

            txn.setBytes(rowCountKey, packForAtomicOp(rowCount));
        }

        private void clearState(Session session) {
            TransactionState txn = txnService.getTransaction(session);
            txn.clearKey(rowCountKey);
            txn.clearKey(autoIncKey);
        }

        private void internalSetAutoInc(Session session, long value, boolean evenIfLess) {
            TransactionState txn = txnService.getTransaction(session);
View Full Code Here

Examples of com.foundationdb.server.store.FDBTransactionService.TransactionState.clearKey()

        }

        private void clearState(Session session) {
            TransactionState txn = txnService.getTransaction(session);
            txn.clearKey(rowCountKey);
            txn.clearKey(autoIncKey);
        }

        private void internalSetAutoInc(Session session, long value, boolean evenIfLess) {
            TransactionState txn = txnService.getTransaction(session);
            long current = decodeOrZero(txn.getValue(autoIncKey));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.