55
66public final class SharedTable {
77 private final String name ;
8- private final String location ;
98 private final String schema ;
109 private final String share ;
10+ private final InternalTable internalTable ;
1111
12- public SharedTable (String name , String location , String schema , String share ) {
12+ public SharedTable (String name , String schema , String share , InternalTable internalTable ) {
1313 this .name = name ;
14- this .location = location ;
1514 this .schema = schema ;
1615 this .share = share ;
16+ this .internalTable = internalTable ;
1717 }
1818
1919 public String name () {
2020 return name ;
2121 }
2222
23- public String location () {
24- return location ;
25- }
26-
2723 public String schema () {
2824 return schema ;
2925 }
@@ -32,31 +28,35 @@ public String share() {
3228 return share ;
3329 }
3430
31+ public InternalTable internalTable () {
32+ return internalTable ;
33+ }
34+
3535 @ Override
3636 @ SkipCoverageGenerated
37- public boolean equals (Object obj ) {
38- if (obj == this ) return true ;
39- if (obj == null || obj . getClass () != this .getClass ()) return false ;
40- var that = (SharedTable ) obj ;
41- return Objects .equals (this . name , that .name )
42- && Objects .equals (this . location , that .location )
43- && Objects .equals (this . schema , that .schema )
44- && Objects .equals (this . share , that .share );
37+ public boolean equals (Object o ) {
38+ if (this == o ) return true ;
39+ if (o == null || getClass () != o .getClass ()) return false ;
40+ SharedTable that = (SharedTable ) o ;
41+ return Objects .equals (name , that .name )
42+ && Objects .equals (schema , that .schema )
43+ && Objects .equals (share , that .share )
44+ && Objects .equals (internalTable , that .internalTable );
4545 }
4646
4747 @ Override
4848 @ SkipCoverageGenerated
4949 public int hashCode () {
50- return Objects .hash (name , location , schema , share );
50+ return Objects .hash (name , schema , share , internalTable );
5151 }
5252
5353 @ Override
5454 @ SkipCoverageGenerated
5555 public String toString () {
56- return "Table[ " + "name="
57- + name + ", " + "location= "
58- + location + ", " + "schema= "
59- + schema + ", " + "share ="
60- + share + '] ' ;
56+ return "SharedTable{ " + "name=' "
57+ + name + '\'' + ", schema=' "
58+ + schema + '\'' + ", share=' "
59+ + share + '\'' + ", internalTable ="
60+ + internalTable + '} ' ;
6161 }
6262}
0 commit comments