You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Composites, even though a product of value types, do not themselves have value behavior. Provide hashCode() and equals().
Motivating example:
Create column family with composite column-names.
Create template for column family.
Query a slice on the family returning a ColumnFamilyResult.
At this point you cannot specify a new Composite to getColumn() because the implementation uses a Hash and the hashCodes are different for what's in the Hash and what you would hand to getColumn().
The text was updated successfully, but these errors were encountered:
The problem is that Composites do not know which serializer to use, when de-serializing the data. Check my pull request #503 for one way to handle this.
Since you are having to hand in a constructed Composite to getColumn() it should know how to create a ByteBuffer of its components. The hashCode could be based on the bytes in the buffer. As a mutable structure though that's gonna turn around and bite pretty quick. I'll have to think on this and see if I can come up with what I'm after.
Composites, even though a product of value types, do not themselves have value behavior. Provide hashCode() and equals().
Motivating example:
At this point you cannot specify a new Composite to getColumn() because the implementation uses a Hash and the hashCodes are different for what's in the Hash and what you would hand to getColumn().
The text was updated successfully, but these errors were encountered: