Class GeneratorSpec.Segment

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

public static final class GeneratorSpec.Segment extends Object implements GeneratorSpec
A segment generator.
  • Method Details

    • builder

      public static GeneratorSpec.Segment.Builder builder(String store)
      A builder of a segment generator.
      Parameters:
      store - the store name
      Returns:
      the builder
    • store

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

      public BatchPolicy batch()
      The batch policy.
      Returns:
      the policy; default BatchPolicy.DEFAULT
    • codec

      public List<CodecSpec> codec()
      The codec list, applied in order.
      Returns:
      the codec list; default empty, for none
    • 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