Examples of SnapshotPredicates


Examples of org.voltdb.sysprocs.saverestore.SnapshotPredicates

        int STOCK_TABLEID = stockTableId(m_catalog);

        loadTestTables( sourceEngine, m_catalog);

        sourceEngine.activateTableStream( WAREHOUSE_TABLEID, TableStreamType.RECOVERY, Long.MAX_VALUE,
                                          new SnapshotPredicates(-1).toBytes());
        sourceEngine.activateTableStream( STOCK_TABLEID, TableStreamType.RECOVERY, Long.MAX_VALUE,
                                          new SnapshotPredicates(-1).toBytes());

        final BBContainer origin = DBBPool.allocateDirect(1024 * 1024 * 2);
        origin.b().clear();
        final BBContainer container = new BBContainer(origin.b()){

View Full Code Here

Examples of org.voltdb.sysprocs.saverestore.SnapshotPredicates

        int STOCK_TABLEID = stockTableId(m_catalog);

        loadTestTables( sourceEngine, m_catalog);

        SnapshotPredicates predicates = new SnapshotPredicates(-1);
        predicates.addPredicate(new HashRangeExpressionBuilder()
                                        .put(0x00000000, 0x7fffffff)
                                        .build(0),
                                true);

        // Build the index
        sourceEngine.activateTableStream(STOCK_TABLEID, TableStreamType.ELASTIC_INDEX, Long.MAX_VALUE, predicates.toBytes());

        // Humor serializeMore() by providing a buffer, even though it's not used.
        final BBContainer origin = DBBPool.allocateDirect(1024 * 1024 * 2);
        origin.b().clear();
        BBContainer container = new BBContainer(origin.b()){
View Full Code Here

Examples of org.voltdb.sysprocs.saverestore.SnapshotPredicates

            // Add the task to the task list for the given table
            m_snapshotTableTasks.put(task.m_table.getRelativeIndex(), task);

            // Make sure there is a predicate object for each table, the predicate could contain
            // empty expressions. So activateTableStream() doesn't have to do a null check.
            SnapshotPredicates predicates = tablesAndPredicates.get(task.m_table.getRelativeIndex());
            if (predicates == null) {
                predicates = new SnapshotPredicates(task.m_table.getRelativeIndex());
                tablesAndPredicates.put(task.m_table.getRelativeIndex(), predicates);
            }

            predicates.addPredicate(task.m_predicate, task.m_deleteTuples);
        }

        for (Map.Entry<Integer, SnapshotPredicates> e : tablesAndPredicates.entrySet()) {
            predicateBytes.put(e.getKey(), e.getValue().toBytes());
        }
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.