Class Span.Builder

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

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

      • getName

        public String getName()
        Gets the value of the 'name' field.
        Returns:
        The value.
      • setName

        public Span.Builder setName​(String value)
        Sets the value of the 'name' field.
        Parameters:
        value - The value of 'name'.
        Returns:
        This builder.
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set.
        Returns:
        True if the 'name' field has been set, false otherwise.
      • clearName

        public Span.Builder clearName()
        Clears the value of the 'name' field.
        Returns:
        This builder.
      • getSpanId

        public String getSpanId()
        Gets the value of the 'spanId' field.
        Returns:
        The value.
      • setSpanId

        public Span.Builder setSpanId​(String value)
        Sets the value of the 'spanId' field.
        Parameters:
        value - The value of 'spanId'.
        Returns:
        This builder.
      • hasSpanId

        public boolean hasSpanId()
        Checks whether the 'spanId' field has been set.
        Returns:
        True if the 'spanId' field has been set, false otherwise.
      • clearSpanId

        public Span.Builder clearSpanId()
        Clears the value of the 'spanId' field.
        Returns:
        This builder.
      • getTraceId

        public String getTraceId()
        Gets the value of the 'traceId' field.
        Returns:
        The value.
      • setTraceId

        public Span.Builder setTraceId​(String value)
        Sets the value of the 'traceId' field.
        Parameters:
        value - The value of 'traceId'.
        Returns:
        This builder.
      • hasTraceId

        public boolean hasTraceId()
        Checks whether the 'traceId' field has been set.
        Returns:
        True if the 'traceId' field has been set, false otherwise.
      • clearTraceId

        public Span.Builder clearTraceId()
        Clears the value of the 'traceId' field.
        Returns:
        This builder.
      • getStartMillis

        public long getStartMillis()
        Gets the value of the 'startMillis' field.
        Returns:
        The value.
      • setStartMillis

        public Span.Builder setStartMillis​(long value)
        Sets the value of the 'startMillis' field.
        Parameters:
        value - The value of 'startMillis'.
        Returns:
        This builder.
      • hasStartMillis

        public boolean hasStartMillis()
        Checks whether the 'startMillis' field has been set.
        Returns:
        True if the 'startMillis' field has been set, false otherwise.
      • clearStartMillis

        public Span.Builder clearStartMillis()
        Clears the value of the 'startMillis' field.
        Returns:
        This builder.
      • getDuration

        public long getDuration()
        Gets the value of the 'duration' field.
        Returns:
        The value.
      • setDuration

        public Span.Builder setDuration​(long value)
        Sets the value of the 'duration' field.
        Parameters:
        value - The value of 'duration'.
        Returns:
        This builder.
      • hasDuration

        public boolean hasDuration()
        Checks whether the 'duration' field has been set.
        Returns:
        True if the 'duration' field has been set, false otherwise.
      • clearDuration

        public Span.Builder clearDuration()
        Clears the value of the 'duration' field.
        Returns:
        This builder.
      • getSource

        public String getSource()
        Gets the value of the 'source' field.
        Returns:
        The value.
      • setSource

        public Span.Builder setSource​(String value)
        Sets the value of the 'source' field.
        Parameters:
        value - The value of 'source'.
        Returns:
        This builder.
      • hasSource

        public boolean hasSource()
        Checks whether the 'source' field has been set.
        Returns:
        True if the 'source' field has been set, false otherwise.
      • clearSource

        public Span.Builder clearSource()
        Clears the value of the 'source' field.
        Returns:
        This builder.
      • getCustomer

        public String getCustomer()
        Gets the value of the 'customer' field.
        Returns:
        The value.
      • setCustomer

        public Span.Builder setCustomer​(String value)
        Sets the value of the 'customer' field.
        Parameters:
        value - The value of 'customer'.
        Returns:
        This builder.
      • hasCustomer

        public boolean hasCustomer()
        Checks whether the 'customer' field has been set.
        Returns:
        True if the 'customer' field has been set, false otherwise.
      • clearCustomer

        public Span.Builder clearCustomer()
        Clears the value of the 'customer' field.
        Returns:
        This builder.
      • getAnnotations

        public List<Annotation> getAnnotations()
        Gets the value of the 'annotations' field.
        Returns:
        The value.
      • setAnnotations

        public Span.Builder setAnnotations​(List<Annotation> value)
        Sets the value of the 'annotations' field.
        Parameters:
        value - The value of 'annotations'.
        Returns:
        This builder.
      • hasAnnotations

        public boolean hasAnnotations()
        Checks whether the 'annotations' field has been set.
        Returns:
        True if the 'annotations' field has been set, false otherwise.
      • clearAnnotations

        public Span.Builder clearAnnotations()
        Clears the value of the 'annotations' field.
        Returns:
        This builder.
      • build

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