feat(scheduler): 使用简化的table_meta加速查询
This commit is contained in:
@@ -12,22 +12,30 @@ public class SimpleTableMeta {
|
||||
private String alias;
|
||||
private String schema;
|
||||
private String table;
|
||||
private Integer priority;
|
||||
private String targetTableType;
|
||||
private String targetDb;
|
||||
private String targetTable;
|
||||
private String targetHdfs;
|
||||
private String tags;
|
||||
private Integer bucketNumber;
|
||||
|
||||
public SimpleTableMeta() {
|
||||
}
|
||||
|
||||
public SimpleTableMeta(Long flinkJobId, String flinkJobName, String alias, String schema, String table, String targetDb, String targetTable, String targetHdfs) {
|
||||
public SimpleTableMeta(Long flinkJobId, String flinkJobName, String alias, String schema, String table, Integer priority, String targetTableType, String targetDb, String targetTable, String targetHdfs, String tags, Integer bucketNumber) {
|
||||
this.flinkJobId = flinkJobId;
|
||||
this.flinkJobName = flinkJobName;
|
||||
this.alias = alias;
|
||||
this.schema = schema;
|
||||
this.table = table;
|
||||
this.priority = priority;
|
||||
this.targetTableType = targetTableType;
|
||||
this.targetDb = targetDb;
|
||||
this.targetTable = targetTable;
|
||||
this.targetHdfs = targetHdfs;
|
||||
this.tags = tags;
|
||||
this.bucketNumber = bucketNumber;
|
||||
}
|
||||
|
||||
public Long getFlinkJobId() {
|
||||
@@ -50,6 +58,14 @@ public class SimpleTableMeta {
|
||||
return table;
|
||||
}
|
||||
|
||||
public Integer getPriority() {
|
||||
return priority;
|
||||
}
|
||||
|
||||
public String getTargetTableType() {
|
||||
return targetTableType;
|
||||
}
|
||||
|
||||
public String getTargetDb() {
|
||||
return targetDb;
|
||||
}
|
||||
@@ -62,6 +78,14 @@ public class SimpleTableMeta {
|
||||
return targetHdfs;
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public Integer getBucketNumber() {
|
||||
return bucketNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SimpleTableMeta{" +
|
||||
@@ -70,9 +94,13 @@ public class SimpleTableMeta {
|
||||
", alias='" + alias + '\'' +
|
||||
", schema='" + schema + '\'' +
|
||||
", table='" + table + '\'' +
|
||||
", priority=" + priority +
|
||||
", targetTableType='" + targetTableType + '\'' +
|
||||
", targetDb='" + targetDb + '\'' +
|
||||
", targetTable='" + targetTable + '\'' +
|
||||
", targetHdfs='" + targetHdfs + '\'' +
|
||||
", tags='" + tags + '\'' +
|
||||
", bucketNumber=" + bucketNumber +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user