Package me.ahoo.cosid.sharding
Class IntervalTimeline
java.lang.Object
me.ahoo.cosid.sharding.IntervalTimeline
- All Implemented Interfaces:
PreciseSharding<LocalDateTime>,RangeSharding<LocalDateTime>,Sharding<LocalDateTime>
Interval Timeline.

-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIntervalTimeline(String logicNamePrefix, com.google.common.collect.Range<LocalDateTime> effectiveInterval, IntervalStep step, DateTimeFormatter suffixFormatter) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(LocalDateTime time) sharding(com.google.common.collect.Range<LocalDateTime> shardingValue) sharding(LocalDateTime shardingValue) intsize()
-
Constructor Details
-
IntervalTimeline
public IntervalTimeline(String logicNamePrefix, com.google.common.collect.Range<LocalDateTime> effectiveInterval, IntervalStep step, DateTimeFormatter suffixFormatter)
-
-
Method Details
-
size
public int size() -
contains
-
getStartInterval
-
getEffectiveNodes
- Specified by:
getEffectiveNodesin interfaceSharding<LocalDateTime>
-
sharding
- Specified by:
shardingin interfacePreciseSharding<LocalDateTime>
-
sharding
@Nonnull public Collection<String> sharding(com.google.common.collect.Range<LocalDateTime> shardingValue) - Specified by:
shardingin interfaceRangeSharding<LocalDateTime>
-