forked from DataLinkDC/dinky
-
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.
Merge pull request DataLinkDC#55 from DataLinkDC/dev
数据源优化和官网文档
- Loading branch information
Showing
71 changed files
with
2,034 additions
and
119 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
49 changes: 49 additions & 0 deletions
49
dlink-common/src/main/java/com/dlink/result/AbstractResult.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.dlink.result; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* AbstractResult | ||
* | ||
* @author wenmo | ||
* @since 2021/6/29 22:49 | ||
*/ | ||
public class AbstractResult { | ||
|
||
protected boolean success; | ||
protected LocalDateTime startTime; | ||
protected LocalDateTime endTime; | ||
protected String error; | ||
|
||
public void setStartTime(LocalDateTime startTime){ | ||
this.startTime = startTime; | ||
} | ||
|
||
public boolean isSuccess() { | ||
return success; | ||
} | ||
|
||
public void setSuccess(boolean success) { | ||
this.success = success; | ||
} | ||
|
||
public LocalDateTime getStartTime() { | ||
return startTime; | ||
} | ||
|
||
public LocalDateTime getEndTime() { | ||
return endTime; | ||
} | ||
|
||
public void setEndTime(LocalDateTime endTime) { | ||
this.endTime = endTime; | ||
} | ||
|
||
public String getError() { | ||
return error; | ||
} | ||
|
||
public void setError(String error) { | ||
this.error = error; | ||
} | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.dlink.config; | ||
|
||
import com.dlink.assertion.Asserts; | ||
|
||
/** | ||
* Dialect | ||
* | ||
* @author wenmo | ||
* @since 2021/12/13 | ||
**/ | ||
public enum Dialect { | ||
|
||
FLINKSQL("FlinkSql"),SQL("Sql"),JAVA("Java"); | ||
|
||
private String value; | ||
|
||
public static final Dialect DEFAULT = Dialect.FLINKSQL; | ||
|
||
Dialect(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public boolean equalsVal(String valueText){ | ||
return Asserts.isEqualsIgnoreCase(value,valueText); | ||
} | ||
|
||
public static Dialect get(String value){ | ||
for (Dialect type : Dialect.values()) { | ||
if(Asserts.isEqualsIgnoreCase(type.getValue(),value)){ | ||
return type; | ||
} | ||
} | ||
return Dialect.FLINKSQL; | ||
} | ||
} | ||
|
Oops, something went wrong.