java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.PeriodicSegment
- All Implemented Interfaces:
GeneratorSpec
- Enclosing interface:
GeneratorSpec
A periodic segment generator.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.ahoo.cosid.runtime.GeneratorSpec
GeneratorSpec.CosId80, GeneratorSpec.Custom, GeneratorSpec.Disabled, GeneratorSpec.Instance, GeneratorSpec.PeriodicSegment, GeneratorSpec.Segment, GeneratorSpec.Snowflake, GeneratorSpec.UuidV7 -
Method Summary
-
Method Details
-
builder
public static GeneratorSpec.PeriodicSegment.Builder builder(String store, Period period, ZoneId zone) A builder of a periodic segment generator.- Parameters:
store- the store nameperiod- the periodzone- the time zone the periods follow- Returns:
- the builder
-
store
The store name.- Returns:
- the store name
-
period
The period.- Returns:
- the period
-
zone
The time zone the periods follow.- Returns:
- the zone
-
batch
The batch policy of each period.- Returns:
- the policy; default
BatchPolicy.DEFAULT
-
periodic
The periodic policy.- Returns:
- the policy; default
PeriodicPolicy.DEFAULT
-
codec
The grouped codec.- Returns:
- the codec; default the period first,
-, then the value
-
equals
-
hashCode
public int hashCode() -
toString
-