[ 
https://issues.apache.org/jira/browse/HBASE-12269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172702#comment-14172702
 ] 

Niels Basjes commented on HBASE-12269:
--------------------------------------

Thanks, this clarifies a lot.

Yes, this should be tied to maven.
Both pages say the code must be generated with the option  --gen java:hashcode 
It seems the files that are currently in the trunk have been generated with 
--gen java instead.
The diff I get is quite large and most of the volume is taken up by differences 
like this:
{code}
    @Override
   public int hashCode() {
-    return 0;
+    HashCodeBuilder builder = new HashCodeBuilder();
+
+    boolean present_row = true && (isSetRow());
+    builder.append(present_row);
+    if (present_row)
+      builder.append(row);
+
+    boolean present_mutations = true && (isSetMutations());
+    builder.append(present_mutations);
+    if (present_mutations)
+      builder.append(mutations);
+
+    return builder.toHashCode();
   }
{code}

> Add support for Scan.setRowPrefixFilter to thrift
> -------------------------------------------------
>
>                 Key: HBASE-12269
>                 URL: https://issues.apache.org/jira/browse/HBASE-12269
>             Project: HBase
>          Issue Type: New Feature
>          Components: Thrift
>            Reporter: Niels Basjes
>
> I think having the feature introduced in HBASE-11990 in the hbase thrift 
> interface would be very useful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to