/* This file is part of VoltDB.
 * Copyright (C) 2008-2013 VoltDB Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with VoltDB.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.voltdb;

/**
 * A class identifying a table that should be snapshotted as well as the destination
 * for the resulting tuple blocks
 */
public class SnapshotTableTask
{
    final int m_tableId;
    final SnapshotDataTarget m_target;
    final SnapshotDataFilter m_filters[];
    final boolean m_isReplicated;
    final String m_name;
    final boolean m_isDevNull;

    public SnapshotTableTask(
            final int tableId,
            final SnapshotDataTarget target,
            final SnapshotDataFilter filters[],
            boolean isReplicated,
            final String tableName)
    {
        m_tableId = tableId;
        m_target = target;
        m_filters = filters;
        m_isReplicated = isReplicated;
        m_name = tableName;
        m_isDevNull = m_target instanceof DevNullSnapshotTarget;
    }

    public int getTableId() {
        return m_tableId;
    }

    @Override
    public String toString() {
        return ("SnapshotTableTask for " + m_name + " replicated " + m_isReplicated);
    }
}


@@ -754,16 +754,67 @@
 oltdb;%0A%0A
+import org.voltdb.expressions.AbstractExpression;%0A%0A
 /**%0A * A
@@ -1071,16 +1071,92 @@
 ters%5B%5D;%0A
+    final AbstractExpression m_predicate;%0A    final boolean m_deleteTuples;%0A
     fina
@@ -1392,16 +1392,104 @@
 ters%5B%5D,%0A
+            final AbstractExpression predicate,%0A            final boolean deleteTuples,%0A
         
@@ -1608,24 +1608,24 @@
 t = target;%0A
-
         m_fi
@@ -1641,16 +1641,88 @@
 ilters;%0A
+        m_predicate = predicate;%0A        m_deleteTuples = deleteTuples;%0A
         

Add predicate and deleteTuple boolean to the SnapshotTableTask.