Index

A B C D E F G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

add(int, E) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
addAll(Collection<? extends E>) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
all() - Static method in record class me.ahoo.cosid.sharding.ShardingRange
Every value.
atLeast(C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
[lower..+∞).
atMost(C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
(-∞..upper].

B

BoundType - Enum Class in me.ahoo.cosid.sharding
Whether an endpoint of a ShardingRange belongs to it.

C

CachedSharding<T> - Class in me.ahoo.cosid.sharding
Caching wrapper for sharding algorithms.
CachedSharding(Sharding<T>) - Constructor for class me.ahoo.cosid.sharding.CachedSharding
Creates a cached wrapper around the specified sharding algorithm.
CachedSharding(Sharding<T>, long) - Constructor for class me.ahoo.cosid.sharding.CachedSharding
Creates a cached wrapper around the specified sharding algorithm, keeping at most maximumSize ranges.
clear() - Method in class me.ahoo.cosid.sharding.ExactCollection
 
closed(C, C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
[lower..upper].
CLOSED - Enum constant in enum class me.ahoo.cosid.sharding.BoundType
The endpoint is part of the range.
closedOpen(C, C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
[lower..upper).
contains(C) - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether the value lies in the range.
contains(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
contains(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalTimeline
Checks if the given time is within the effective interval.

D

DEFAULT_AMOUNT - Static variable in class me.ahoo.cosid.sharding.IntervalStep
Default amount of 1.
DEFAULT_MAXIMUM_SIZE - Static variable in class me.ahoo.cosid.sharding.CachedSharding
The most ranges kept by default: query ranges come from user input, so the cache must not grow without bound.

E

empty() - Static method in class me.ahoo.cosid.sharding.ExactCollection
 
equals(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
equals(Object) - Method in record class me.ahoo.cosid.sharding.ShardingRange
Indicates whether some other object is "equal to" this one.
ExactCollection<E> - Class in me.ahoo.cosid.sharding
Exact-size collection optimized for known node counts.
ExactCollection(int) - Constructor for class me.ahoo.cosid.sharding.ExactCollection
 
ExactCollection(Object...) - Constructor for class me.ahoo.cosid.sharding.ExactCollection
 

F

floorUnit(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalStep
Truncates time to the precision of the unit.

G

get(int) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
getAmount() - Method in class me.ahoo.cosid.sharding.IntervalStep
Gets the amount.
getDivisor() - Method in class me.ahoo.cosid.sharding.ModCycle
Gets the divisor.
getEffectiveNodes() - Method in class me.ahoo.cosid.sharding.CachedSharding
 
getEffectiveNodes() - Method in class me.ahoo.cosid.sharding.IntervalTimeline
 
getEffectiveNodes() - Method in class me.ahoo.cosid.sharding.ModCycle
 
getEffectiveNodes() - Method in interface me.ahoo.cosid.sharding.Sharding
Gets all effective node names.
getLower() - Method in class me.ahoo.cosid.sharding.IntervalTimeline.Interval
Gets the lower bound.
getNode() - Method in class me.ahoo.cosid.sharding.IntervalTimeline.Interval
Gets the node name.
getStartInterval() - Method in class me.ahoo.cosid.sharding.IntervalTimeline
Gets the start interval.
getUnit() - Method in class me.ahoo.cosid.sharding.IntervalStep
Gets the time unit.
greaterThan(C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
(lower..+∞).

H

hashCode() - Method in class me.ahoo.cosid.sharding.ExactCollection
 
hashCode() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Returns a hash code value for this object.
hasLowerBound() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether the range has a lower endpoint.
hasUpperBound() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether the range has an upper endpoint.

I

indexOf(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
Interval(LocalDateTime, String) - Constructor for class me.ahoo.cosid.sharding.IntervalTimeline.Interval
Creates an interval.
IntervalStep - Class in me.ahoo.cosid.sharding
Represents a time interval step for sharding operations.
IntervalStep(ChronoUnit, int) - Constructor for class me.ahoo.cosid.sharding.IntervalStep
Creates an interval step.
IntervalTimeline - Class in me.ahoo.cosid.sharding
Timeline-based interval sharding algorithm.
IntervalTimeline(String, ShardingRange<LocalDateTime>, IntervalStep, DateTimeFormatter) - Constructor for class me.ahoo.cosid.sharding.IntervalTimeline
Creates an IntervalTimeline sharding algorithm.
IntervalTimeline.Interval - Class in me.ahoo.cosid.sharding
Represents a time interval with an associated node name.
isConnected(ShardingRange<C>) - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether some range, possibly empty, is enclosed by both ranges, as Guava's Range.isConnected: [1..2) and [2..3] are connected, [1..2) and (2..3] are not.
isEmpty() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether the range holds no value: [a..a) or (a..a].
iterator() - Method in class me.ahoo.cosid.sharding.ExactCollection
 

L

lessThan(C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
(-∞..upper).
LocalDateTimeConvertor - Interface in me.ahoo.cosid.sharding
 
lower() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Returns the value of the lower record component.
lowerBoundType() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether the lower endpoint belongs to the range.
lowerEndpoint() - Method in record class me.ahoo.cosid.sharding.ShardingRange
The lower endpoint.
lowerType() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Returns the value of the lowerType record component.

M

me.ahoo.cosid.sharding - package me.ahoo.cosid.sharding
 
ModCycle<T> - Class in me.ahoo.cosid.sharding
Modulo-based cyclical sharding algorithm.
ModCycle(int, String) - Constructor for class me.ahoo.cosid.sharding.ModCycle
Creates a ModCycle sharding algorithm.

N

next(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalStep
Calculates the next time by adding the interval.

O

of(ChronoUnit) - Static method in class me.ahoo.cosid.sharding.IntervalStep
Creates an interval step with default amount of 1.
of(ChronoUnit, int) - Static method in class me.ahoo.cosid.sharding.IntervalStep
Creates an interval step with custom amount.
offsetUnit(LocalDateTime, LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalStep
Calculates the offset from start to time in unit increments.
open(C, C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
(lower..upper).
OPEN - Enum constant in enum class me.ahoo.cosid.sharding.BoundType
The endpoint is not part of the range.
openClosed(C, C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
(lower..upper].

P

PreciseSharding<T> - Interface in me.ahoo.cosid.sharding
Single-value sharding algorithm interface.

R

RADIX62_PAD_START - Static variable in class me.ahoo.cosid.sharding.SnowflakeLocalDateTimeConvertor
The text form of 4.x's Radix62IdConverter.PAD_START: base 62, 11 digits, padded.
RangeSharding<T> - Interface in me.ahoo.cosid.sharding
Range-based sharding algorithm interface.
remove(Object) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
removeAll(Collection<?>) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
retainAll(Collection<?>) - Method in class me.ahoo.cosid.sharding.ExactCollection
 

S

sharding(LocalDateTime) - Method in class me.ahoo.cosid.sharding.IntervalTimeline
 
sharding(ShardingRange<LocalDateTime>) - Method in class me.ahoo.cosid.sharding.IntervalTimeline
 
sharding(ShardingRange<T>) - Method in class me.ahoo.cosid.sharding.CachedSharding
The nodes of a range, cached.
sharding(ShardingRange<T>) - Method in class me.ahoo.cosid.sharding.ModCycle
 
sharding(ShardingRange<T>) - Method in interface me.ahoo.cosid.sharding.RangeSharding
Gets the nodes that should handle the given range of IDs.
sharding(T) - Method in class me.ahoo.cosid.sharding.CachedSharding
 
sharding(T) - Method in class me.ahoo.cosid.sharding.ModCycle
 
sharding(T) - Method in interface me.ahoo.cosid.sharding.PreciseSharding
Gets the node for a single sharding value.
Sharding<T> - Interface in me.ahoo.cosid.sharding
Sharding algorithm interface for distributing data across multiple nodes.
ShardingRange<C> - Record Class in me.ahoo.cosid.sharding
A range of sharding values, the query a RangeSharding answers.
ShardingRange(C, BoundType, C, BoundType) - Constructor for record class me.ahoo.cosid.sharding.ShardingRange
Checks the bounds.
singleton(C) - Static method in record class me.ahoo.cosid.sharding.ShardingRange
[value..value].
size() - Method in class me.ahoo.cosid.sharding.ExactCollection
 
size() - Method in class me.ahoo.cosid.sharding.IntervalTimeline
Gets the number of intervals.
SnowflakeLocalDateTimeConvertor - Class in me.ahoo.cosid.sharding
Converts a Snowflake id, a Long or its text, to the time it was issued: Layout.unpack(long) gives the time part (D7; 4.x used a SnowflakeIdStateParser).
SnowflakeLocalDateTimeConvertor(Layout, ZoneId) - Constructor for class me.ahoo.cosid.sharding.SnowflakeLocalDateTimeConvertor
Creates the convertor; text values are base 62, 11 digits, padded.
SnowflakeLocalDateTimeConvertor(Layout, ZoneId, IdCodec) - Constructor for class me.ahoo.cosid.sharding.SnowflakeLocalDateTimeConvertor
Creates the convertor.
StandardLocalDateTimeConvertor - Class in me.ahoo.cosid.sharding
Converts the common date and time types, epoch timestamps and formatted text to a LocalDateTime.
StandardLocalDateTimeConvertor(ZoneId, boolean, DateTimeFormatter) - Constructor for class me.ahoo.cosid.sharding.StandardLocalDateTimeConvertor
Creates the convertor.

T

toArray() - Method in class me.ahoo.cosid.sharding.ExactCollection
 
toArray(T[]) - Method in class me.ahoo.cosid.sharding.ExactCollection
 
toLocalDateTime(Comparable<?>) - Method in interface me.ahoo.cosid.sharding.LocalDateTimeConvertor
To local date time.
toLocalDateTime(Comparable<?>) - Method in class me.ahoo.cosid.sharding.SnowflakeLocalDateTimeConvertor
 
toLocalDateTime(Comparable<?>) - Method in class me.ahoo.cosid.sharding.StandardLocalDateTimeConvertor
 
toString() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Returns a string representation of this record class.

U

upper() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Returns the value of the upper record component.
upperBoundType() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Whether the upper endpoint belongs to the range.
upperEndpoint() - Method in record class me.ahoo.cosid.sharding.ShardingRange
The upper endpoint.
upperType() - Method in record class me.ahoo.cosid.sharding.ShardingRange
Returns the value of the upperType record component.

V

valueOf(String) - Static method in enum class me.ahoo.cosid.sharding.BoundType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class me.ahoo.cosid.sharding.BoundType
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values