forked from delta-io/delta-sharing
-
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.
Return read version in ReadTableResult (#198)
Add lombok because pojo refactor was too painful
- Loading branch information
1 parent
9c58f42
commit 79c1eab
Showing
10 changed files
with
60 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lombok.accessors.fluent=true | ||
lombok.addLombokGeneratedAnnotation = true |
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
55 changes: 6 additions & 49 deletions
55
server/core/src/main/java/io/whitefox/core/ReadTableResult.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,55 +1,12 @@ | ||
package io.whitefox.core; | ||
|
||
import io.whitefox.annotations.SkipCoverageGenerated; | ||
import java.util.List; | ||
import java.util.Objects; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class ReadTableResult { | ||
private final Protocol protocol; | ||
private final Metadata metadata; | ||
private final List<TableFile> files; | ||
|
||
public ReadTableResult(Protocol protocol, Metadata metadata, List<TableFile> files) { | ||
this.protocol = protocol; | ||
this.metadata = metadata; | ||
this.files = files; | ||
} | ||
|
||
@Override | ||
@SkipCoverageGenerated | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
ReadTableResult that = (ReadTableResult) o; | ||
return Objects.equals(protocol, that.protocol) | ||
&& Objects.equals(metadata, that.metadata) | ||
&& Objects.equals(files, that.files); | ||
} | ||
|
||
@Override | ||
@SkipCoverageGenerated | ||
public int hashCode() { | ||
return Objects.hash(protocol, metadata, files); | ||
} | ||
|
||
@Override | ||
@SkipCoverageGenerated | ||
public String toString() { | ||
return "QueryTableResult{" + "protocol=" | ||
+ protocol + ", metadata=" | ||
+ metadata + ", files=" | ||
+ files + '}'; | ||
} | ||
|
||
public Protocol protocol() { | ||
return protocol; | ||
} | ||
|
||
public Metadata metadata() { | ||
return metadata; | ||
} | ||
|
||
public List<TableFile> files() { | ||
return files; | ||
} | ||
Protocol protocol; | ||
Metadata metadata; | ||
List<TableFile> files; | ||
long version; | ||
} |
56 changes: 6 additions & 50 deletions
56
server/core/src/main/java/io/whitefox/core/ReadTableResultToBeSigned.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,56 +1,12 @@ | ||
package io.whitefox.core; | ||
|
||
import io.whitefox.annotations.SkipCoverageGenerated; | ||
import java.util.List; | ||
import java.util.Objects; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class ReadTableResultToBeSigned { | ||
private final Protocol protocol; | ||
private final Metadata metadata; | ||
private final List<TableFileToBeSigned> other; | ||
|
||
public ReadTableResultToBeSigned( | ||
Protocol protocol, Metadata metadata, List<TableFileToBeSigned> other) { | ||
this.protocol = protocol; | ||
this.metadata = metadata; | ||
this.other = other; | ||
} | ||
|
||
@Override | ||
@SkipCoverageGenerated | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
ReadTableResultToBeSigned that = (ReadTableResultToBeSigned) o; | ||
return Objects.equals(protocol, that.protocol) | ||
&& Objects.equals(metadata, that.metadata) | ||
&& Objects.equals(other, that.other); | ||
} | ||
|
||
@Override | ||
@SkipCoverageGenerated | ||
public int hashCode() { | ||
return Objects.hash(protocol, metadata, other); | ||
} | ||
|
||
@Override | ||
@SkipCoverageGenerated | ||
public String toString() { | ||
return "QueryTableResult{" + "protocol=" | ||
+ protocol + ", metadata=" | ||
+ metadata + ", other=" | ||
+ other + '}'; | ||
} | ||
|
||
public Protocol protocol() { | ||
return protocol; | ||
} | ||
|
||
public Metadata metadata() { | ||
return metadata; | ||
} | ||
|
||
public List<TableFileToBeSigned> other() { | ||
return other; | ||
} | ||
Protocol protocol; | ||
Metadata metadata; | ||
List<TableFileToBeSigned> other; | ||
long version; | ||
} |
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