add hive sql parser

This commit is contained in:
温少
2012-02-25 19:54:09 +08:00
parent ded9087df0
commit 4775d9e475
18 changed files with 496 additions and 94 deletions
@@ -23,6 +23,15 @@ public class TableStat {
int insertCount = 0;
int dropCount = 0;
int mergeCount = 0;
int createCount = 0;
public int getCreateCount() {
return createCount;
}
public void incrementCreateCount() {
this.createCount++;
}
public int getMergeCount() {
return mergeCount;
@@ -112,6 +121,9 @@ public class TableStat {
if (dropCount > 0) {
buf.append("Drop");
}
if (createCount > 0) {
buf.append("Create");
}
return buf.toString();
}