Examples of FDBStoreData


Examples of com.foundationdb.server.store.FDBStoreData

        hKey.append(indexStatisticsRowDef.table().getOrdinal())
            .append((long) indexRowDef.getRowDefId())
            .append((long) index.getIndexId());

        IndexStatistics result = null;
        FDBStoreData storeData = getStore().createStoreData(session, indexStatisticsRowDef.getGroup());
        hKey.copyTo(storeData.persistitKey);
        getStore().groupKeyAndDescendantsIterator(session, storeData, true);
        while(storeData.next()) {
            if(result == null) {
                result = decodeHeader(storeData, indexStatisticsRowDef, index);
            } else {
                decodeEntry(storeData, indexStatisticsEntryRowDef, result);
            }
View Full Code Here

Examples of com.foundationdb.server.store.FDBStoreData

        Key hKey = getStore().createKey();
        hKey.append(indexStatisticsRowDef.table().getOrdinal())
                .append((long) indexRowDef.getRowDefId())
                .append((long) index.getIndexId());

        FDBStoreData storeData = getStore().createStoreData(session, indexStatisticsRowDef.getGroup());
        hKey.copyTo(storeData.persistitKey);
        getStore().groupKeyAndDescendantsIterator(session, storeData, false);
        while(storeData.next()) {
            RowData rowData = new RowData();
            FDBStoreDataHelper.expandRowData(rowData, storeData, false);
            getStore().deleteRow(session, rowData, false); // TODO: Use cascade?
        }
    }
View Full Code Here

Examples of com.foundationdb.server.store.FDBStoreData

            }
        }
        IndexStatisticsVisitor<Key,byte[]> visitor = new IndexStatisticsVisitor<>(session, index, indexRowCount, expectedSampleCount, this);
        int bucketCount = indexStatisticsService.bucketCount();
        visitor.init(bucketCount);
        FDBStoreData storeData = getStore().createStoreData(session, index);
        // Whole index, snapshot
        getStore().indexIterator(session, storeData, false, false, false, true);
        while(storeData.next()) {
            if (++skippedSamples < sampleRate)
                continue;       // This value not sampled.
            skippedSamples = 0;
            FDBStoreDataHelper.unpackKey(storeData);
            // TODO: Does anything look at rawValue?
            visitor.visit(storeData.persistitKey, storeData.rawValue);
            if ((scanTimeLimit >= 0) &&
                (System.currentTimeMillis() >= nextCommitTime)) {
                storeData.closeIterator();
                txn.commitAndReset(session);
                if (sleepTime > 0) {
                    try {
                        Thread.sleep(sleepTime);
                    }
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.