Package me.ahoo.cosid.sharding
package me.ahoo.cosid.sharding
-
ClassDescriptionWhether an endpoint of a
ShardingRangebelongs to it.CachedSharding<T extends Comparable<? super T>>Caching wrapper for sharding algorithms.Exact-size collection optimized for known node counts.Represents a time interval step for sharding operations.Timeline-based interval sharding algorithm.Represents a time interval with an associated node name.Modulo-based cyclical sharding algorithm.PreciseSharding<T extends Comparable<? super T>>Single-value sharding algorithm interface.RangeSharding<T extends Comparable<? super T>>Range-based sharding algorithm interface.Sharding<T extends Comparable<? super T>>Sharding algorithm interface for distributing data across multiple nodes.ShardingRange<C extends Comparable<? super C>>A range of sharding values, the query aRangeShardinganswers.Converts a Snowflake id, aLongor its text, to the time it was issued:Layout.unpack(long)gives the time part (D7; 4.x used aSnowflakeIdStateParser).Converts the common date and time types, epoch timestamps and formatted text to aLocalDateTime.