-
Notifications
You must be signed in to change notification settings - Fork 1k
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
b71e094
commit 1ab1f0d
Showing
12 changed files
with
1,264 additions
and
81 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
52 changes: 52 additions & 0 deletions
52
...ateway-base/src/main/java/org/apache/streampark/gateway/CompleteStatementRequestBody.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,52 @@ | ||
package org.apache.streampark.gateway; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
public class CompleteStatementRequestBody implements Serializable { | ||
|
||
private final Integer position; | ||
|
||
private final String statement; | ||
|
||
public CompleteStatementRequestBody(Integer position, String statement) { | ||
this.position = position; | ||
this.statement = statement; | ||
} | ||
|
||
public Integer getPosition() { | ||
return position; | ||
} | ||
|
||
public String getStatement() { | ||
return statement; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
CompleteStatementRequestBody that = (CompleteStatementRequestBody) o; | ||
return Objects.equals(position, that.position) && Objects.equals(statement, that.statement); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(position, statement); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CompleteStatementRequestBody{" | ||
+ "position=" | ||
+ position | ||
+ ", statement='" | ||
+ statement | ||
+ '\'' | ||
+ '}'; | ||
} | ||
} |
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
Oops, something went wrong.