Examples of SnapshotTableTask


Examples of org.voltdb.SnapshotSiteProcessor.SnapshotTableTask

                            }
                        };

                        sdt.setOnCloseHandler(onClose);

                        final SnapshotTableTask task =
                            new SnapshotTableTask(
                                    table.getRelativeIndex(),
                                    sdt,                                   
                                    table.getIsreplicated(),
                                    table.getTypeName());
View Full Code Here

Examples of org.voltdb.SnapshotTableTask

            Long localHSId = pidToLocalHSIDs.get(partitionRange.partitionId);

            // The partition may not exist on this node. If so, keep calm and carry on
            if (localHSId != null) {
                // based on the source partition, the predicate is different
                final SnapshotTableTask task =
                    new SnapshotTableTask(table,
                                          new SnapshotDataFilter[0],
                                          createIndexExpressionForTable(table, partitionRange.ranges),
                                          false);
                task.setTarget(dataTarget);

                placeTask(task, Arrays.asList(localHSId));
            }
        }
    }
View Full Code Here

Examples of org.voltdb.SnapshotTableTask

        final ArrayList<SnapshotTableTask> partitionedSnapshotTasks =
            new ArrayList<SnapshotTableTask>();
        final ArrayList<SnapshotTableTask> replicatedSnapshotTasks =
            new ArrayList<SnapshotTableTask>();
        for (final Table table : tables) {
            final SnapshotTableTask task =
                    new SnapshotTableTask(
                            table,
                            new SnapshotDataFilter[0],
                            null,
                            false);
View Full Code Here

Examples of org.voltdb.SnapshotTableTask

            }

            List<SnapshotDataFilter> filters = new ArrayList<SnapshotDataFilter>();
            filters.add(new CSVSnapshotFilter(CatalogUtil.getVoltTable(table), ',', null));

            final SnapshotTableTask task =
                    new SnapshotTableTask(
                            table,
                            filters.toArray(new SnapshotDataFilter[filters.size()]),
                            null,
                            false);
View Full Code Here

Examples of org.voltdb.SnapshotTableTask

                                                            table.getTypeName(),
                                                            numTables,
                                                            snapshotRecord);
            targetInfo.dataTarget.setOnCloseHandler(onClose);

            final SnapshotTableTask task =
                new SnapshotTableTask(table,
                                      new SnapshotDataFilter[0], // This task no longer needs partition filtering
                                      null,
                                      false);
            task.setTarget(targetInfo.dataTarget);

            tasks.put(targetInfo.srcHSId, task);
            m_targets.add(targetInfo.dataTarget);
        }
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.