Class Key.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder<Key>
    Enclosing class:
    Key

    public static class Key.Builder
    extends org.apache.avro.specific.SpecificRecordBuilderBase<Key>
    implements org.apache.avro.data.RecordBuilder<Key>
    RecordBuilder for Key instances.
    • Method Detail

      • getKey

        public CharSequence getKey()
        Gets the value of the 'key' field.
        Returns:
        The value.
      • setKey

        public Key.Builder setKey​(CharSequence value)
        Sets the value of the 'key' field.
        Parameters:
        value - The value of 'key'.
        Returns:
        This builder.
      • hasKey

        public boolean hasKey()
        Checks whether the 'key' field has been set.
        Returns:
        True if the 'key' field has been set, false otherwise.
      • clearKey

        public Key.Builder clearKey()
        Clears the value of the 'key' field.
        Returns:
        This builder.
      • build

        public Key build()
        Specified by:
        build in interface org.apache.avro.data.RecordBuilder<Key>