rdsr commented on a change in pull request #857: [WIP] Add the Test Util And 
ORC Writer for Spark
URL: https://github.com/apache/incubator-iceberg/pull/857#discussion_r397596792
 
 

 ##########
 File path: 
spark/src/test/java/org/apache/iceberg/spark/source/NestedRecord.java
 ##########
 @@ -0,0 +1,77 @@
+package org.apache.iceberg.spark.source;
+
+import com.google.common.base.Objects;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class NestedRecord {
+  private Integer id;
+  private String data;
+  private Map info;// = new HashMap<String, String>();
+
+  public NestedRecord() {
+  }
+
+  NestedRecord(Integer id, String data, Map<String, String> info) {
+    this.id = id;
+    this.data = data;
+    this.info = info;
+  }
+
+  public Integer getId() {
+    return id;
+  }
+
+  public void setId(Integer id) {
+    this.id = id;
+  }
+
+  public String getData() {
+    return data;
+  }
+
+  public void setData(String data) {
+    this.data = data;
+  }
+
+  public Map<String, String> getInfo() {
+    return info;
+  }
+
+  public void setInfo(Map<String, String> info) {
+    this.info = info;
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (this == o) {
+      return true;
+    }
+    if (o == null || getClass() != o.getClass()) {
+      return false;
+    }
+
+    NestedRecord record = (NestedRecord) o;
+    return Objects.equal(id, record.id) && Objects.equal(data, record.data) && 
Objects.equal(info, record.info);
+  }
+
+  @Override
+  public int hashCode() {
+    return Objects.hashCode(id, data, info);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder buffer = new StringBuilder();
+    buffer.append("{\"id\"=");
+    buffer.append(id);
+    buffer.append(",\"data\"=\"");
+    buffer.append(data);
+    buffer.append("\"}");
 
 Review comment:
   this shouldn't be here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to