forked from datavane/tis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
351e261
commit 3fce947
Showing
79 changed files
with
1,993 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
/** | ||
* Copyright (c) 2020 QingLang, Inc. <[email protected]> | ||
* | ||
* <p> | ||
* This program is free software: you can use, redistribute, and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3 | ||
* or later ("AGPL"), as published by the Free Software Foundation. | ||
* | ||
* <p> | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* <p> | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.qlangtech.tis.order.center; | ||
|
||
import com.qlangtech.tis.exec.ExecutePhaseRange; | ||
|
||
/** | ||
* @author 百岁([email protected]) | ||
* @date 2015年12月11日 上午11:09:21 | ||
|
@@ -32,6 +34,8 @@ public interface IParamContext { | |
|
||
public String KEY_BUILD_INDEXING_ALL_ROWS_COUNT = "indexing.all.rows.count"; | ||
|
||
ExecutePhaseRange getExecutePhaseRange(); | ||
|
||
public String getString(String key); | ||
|
||
public boolean getBoolean(String key); | ||
|
14 changes: 11 additions & 3 deletions
14
tis-builder-api/src/main/java/com/qlangtech/tis/sql/parser/er/TableMeta.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
/** | ||
* Copyright (c) 2020 QingLang, Inc. <[email protected]> | ||
* | ||
* <p> | ||
* This program is free software: you can use, redistribute, and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3 | ||
* or later ("AGPL"), as published by the Free Software Foundation. | ||
* | ||
* <p> | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* <p> | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.qlangtech.tis.sql.parser.er; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* @author 百岁([email protected]) | ||
* @create: 2020-06-03 18:09 | ||
*/ | ||
public class TableMeta { | ||
|
||
public static boolean hasValidPrimayTableSharedKey(Optional<TableMeta> ptab) { | ||
return ptab.isPresent() && StringUtils.isNotEmpty(ptab.get().getSharedKey()); | ||
} | ||
|
||
// 主索引表名称 | ||
private final String tabName; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/** | ||
* Copyright (c) 2020 QingLang, Inc. <[email protected]> | ||
* | ||
* <p> | ||
* This program is free software: you can use, redistribute, and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3 | ||
* or later ("AGPL"), as published by the Free Software Foundation. | ||
* | ||
* <p> | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* <p> | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
@@ -17,6 +17,7 @@ | |
import com.qlangtech.tis.dump.INameWithPathGetter; | ||
import com.qlangtech.tis.fullbuild.indexbuild.IDumpTable; | ||
import org.apache.commons.lang.StringUtils; | ||
|
||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
|
@@ -213,7 +214,7 @@ public int hashCode() { | |
@Override | ||
public boolean equals(Object obj) { | ||
if (!(obj instanceof EntityName)) { | ||
throw new IllegalStateException("obj" + obj + " is not type of EntityName"); | ||
throw new IllegalStateException("obj" + obj + ",[" + obj.getClass() + "] is not type of EntityName"); | ||
} | ||
return this.hashCode() == ((EntityName) obj).hashCode(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.