// 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());
}