Crysda::HashBuilder
Custom Hashing helper. This provides a calculated hash of contents which is consistent on each and every run. This doesn't conflict with and/or override Crystal Hashing functionality which is used for object equality checks.
Hash value generated by this builder is only used for internal grouping purposes to ensure the consistency on each and every run/invocation.
Refer to CustomColumnValue for more details and usage purposes.
Constants
HASH_NULL = Int64::MAX - 123000
Constructors
new
SourceClass methods
Hash a single BigDecimal value (or null)
Hash a single Float64 value (or null) - fast path using bit representation
Hash a single Int128 value (or null)
Hash a single Int32 value (or null)
Hash a single Int64 value (or null)
Instance methods
add(val : AnyVal)
Sourceadd(val : Nil)
Sourceadd(val : CustomColumnValue)
Sourceadd(val)
Sourcehashcode(val)
Sourcehashcode
Source