package simpledb.test;

import simpledb.*;
import java.util.*;
import java.io.*;

/**
 * Dumps all the contents of a hashtable.
 * args[1] is the number of columns.  E.g., if it's 5, then ScanTest will end
 * up dumping the contents of f4.0.txt.
 */
public class HashSeqScanTest extends Test {
    public boolean runTest(String args[]) {
	try {
	    dump(hashfile[Integer.parseInt(args[1])-1][Integer.parseInt(args[2])]);
	} catch (TransactionAbortedException te) {
	    te.printStackTrace();
	    return false;
	} catch (IOException e) {
	    e.printStackTrace();
	    return false;
	}
	return true;
    }

}
