lowka commented on code in PR #6406:
URL: https://github.com/apache/ignite-3/pull/6406#discussion_r2272988814
##########
modules/schema/src/main/java/org/apache/ignite/internal/util/ColocationUtils.java:
##########
@@ -117,4 +117,37 @@ public static void append(HashCalculator calc, @Nullable
Object v, NativeType ty
throw new IllegalStateException("Unexpected type: " +
type.spec());
}
}
+
+ /** Generates 32-bit hash from the given value with regard to provided
type. */
+ public static int hash(@Nullable Object v, NativeType type) {
Review Comment:
I think HashCalculator.hashValue does the same thing.
Why do we need an additional method?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]