mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add hive sql parser
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user