Permalink
Browse files

added new file to correctness demos

  • Loading branch information...
jmeehan16 committed Aug 25, 2014
1 parent 0bb0f88 commit 6a11fc4443a735c8a52549c461b2d9175f8f6c6a
@@ -385,6 +385,10 @@ public static void writeToFile(VoltTable[] v, ArrayList<String> tableNames, int
int j = 0;
while(j < v[i].getRowCount())
{
if(tableName.equals("RemainingContestants"))
{
p.print((j+1) + ",");
}
for(int k = 0; k < v[i].getColumnCount(); k++)
{
if(k > 0)
@@ -164,6 +164,7 @@ private void printResults() throws IOException
VoltTable[] v = voltExecuteSQL();
VoterDemoHStoreUtil.writeToFile(v, tableNames, VoterDemoHStoreConstants.DELETE_CODE);
tableNames = new ArrayList<String>();
voltQueueSQL(getAllRemainingContestants);
tableNames.add("RemainingContestants");
voltQueueSQL(getRemovedContestants);
@@ -183,6 +183,7 @@ private void printResults(int numVotes) throws IOException
VoltTable[] v = voltExecuteSQL();
VoterDemoHStoreUtil.writeToFile(v, tableNames, numVotes);
tableNames = new ArrayList<String>();
voltQueueSQL(getAllRemainingContestants);
tableNames.add("RemainingContestants");
voltQueueSQL(getRemovedContestants);
@@ -384,6 +384,10 @@ public static void writeToFile(VoltTable[] v, ArrayList<String> tableNames, int
int j = 0;
while(j < v[i].getRowCount())
{
if(tableName.equals("RemainingContestants"))
{
p.print((j+1) + ",");
}
for(int k = 0; k < v[i].getColumnCount(); k++)
{
if(k > 0)
@@ -175,6 +175,7 @@ private void printResults() throws IOException
VoltTable[] v = voltExecuteSQL();
VoterDemoSStoreUtil.writeToFile(v, tableNames, VoterDemoSStoreConstants.DELETE_CODE);
tableNames = new ArrayList<String>();
voltQueueSQL(getAllRemainingContestants);
tableNames.add("RemainingContestants");
voltQueueSQL(getRemovedContestants);
@@ -183,6 +183,7 @@ private void printResults(int numVotes) throws IOException
VoltTable[] v = voltExecuteSQL();
VoterDemoSStoreUtil.writeToFile(v, tableNames, numVotes);
tableNames = new ArrayList<String>();
voltQueueSQL(getAllRemainingContestants);
tableNames.add("RemainingContestants");
voltQueueSQL(getRemovedContestants);

0 comments on commit 6a11fc4

Please sign in to comment.