diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-04-27 15:59:07 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-04-27 15:59:07 +0200 |
commit | 482b085d278875ec99b2c7442a4255ed86f78d21 (patch) | |
tree | 886d6d8b414426025fa3b9c46c374075fb9a6396 /document | |
parent | 2486046a9b78200462f22f932c6a6ebd7cce0ae4 (diff) |
Remove row+column support
Diffstat (limited to 'document')
-rw-r--r-- | document/src/main/java/com/yahoo/document/GlobalId.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/document/src/main/java/com/yahoo/document/GlobalId.java b/document/src/main/java/com/yahoo/document/GlobalId.java index e2d3e4510f4..95e35c9280c 100644 --- a/document/src/main/java/com/yahoo/document/GlobalId.java +++ b/document/src/main/java/com/yahoo/document/GlobalId.java @@ -12,6 +12,8 @@ import java.util.Arrays; * Implements an incredibly light-weight version of the document global id. There is a lot of functionality in the C++ * version of this that is missing. However, this should be sufficient for now. * + * This is immutable (by contract - not enforcable due to exposing the raw byte array). + * * @author Simon Thoresen */ public class GlobalId implements Comparable { @@ -72,21 +74,19 @@ public class GlobalId implements Comparable { /** * Returns the raw byte array that constitutes this global id. - * - * @return The byte array. + * The returned value MUST NOT be modified. */ public byte[] getRawId() { return raw; } - // Inherit doc from Object. @Override public int hashCode() { return Arrays.hashCode(raw); } public BucketId toBucketId() { - /** + /* * Explanation time: since Java was designed so mankind could suffer, * shift ops on bytes have an implicit int conversion with sign-extend. * When a byte is negative, you end up with an int/long with a 0xFFFFFF |