Class SpanLog.Builder

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

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

      • getTimestamp

        public long getTimestamp()
        Gets the value of the 'timestamp' field.
        Returns:
        The value.
      • setTimestamp

        public SpanLog.Builder setTimestamp​(long value)
        Sets the value of the 'timestamp' field.
        Parameters:
        value - The value of 'timestamp'.
        Returns:
        This builder.
      • hasTimestamp

        public boolean hasTimestamp()
        Checks whether the 'timestamp' field has been set.
        Returns:
        True if the 'timestamp' field has been set, false otherwise.
      • clearTimestamp

        public SpanLog.Builder clearTimestamp()
        Clears the value of the 'timestamp' field.
        Returns:
        This builder.
      • getFields

        public Map<String,​String> getFields()
        Gets the value of the 'fields' field.
        Returns:
        The value.
      • setFields

        public SpanLog.Builder setFields​(Map<String,​String> value)
        Sets the value of the 'fields' field.
        Parameters:
        value - The value of 'fields'.
        Returns:
        This builder.
      • hasFields

        public boolean hasFields()
        Checks whether the 'fields' field has been set.
        Returns:
        True if the 'fields' field has been set, false otherwise.
      • clearFields

        public SpanLog.Builder clearFields()
        Clears the value of the 'fields' field.
        Returns:
        This builder.
      • build

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