Class GeneratorSpec.PeriodicSegment

java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.PeriodicSegment
All Implemented Interfaces:
GeneratorSpec
Enclosing interface:
GeneratorSpec

public static final class GeneratorSpec.PeriodicSegment extends Object implements GeneratorSpec
A periodic segment generator.
  • 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 name
      period - the period
      zone - the time zone the periods follow
      Returns:
      the builder
    • store

      public String store()
      The store name.
      Returns:
      the store name
    • period

      public Period period()
      The period.
      Returns:
      the period
    • zone

      public ZoneId zone()
      The time zone the periods follow.
      Returns:
      the zone
    • batch

      public BatchPolicy batch()
      The batch policy of each period.
      Returns:
      the policy; default BatchPolicy.DEFAULT
    • periodic

      public PeriodicPolicy periodic()
      The periodic policy.
      Returns:
      the policy; default PeriodicPolicy.DEFAULT
    • codec

      public GroupedCodecSpec codec()
      The grouped codec.
      Returns:
      the codec; default the period first, -, then the value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object