org.apache.avro.ipc.trace
Class Span

java.lang.Object
  extended by org.apache.avro.specific.SpecificRecordBase
      extended by org.apache.avro.ipc.trace.Span
All Implemented Interfaces:
Comparable<SpecificRecord>, GenericContainer, IndexedRecord, SpecificRecord

public class Span
extends SpecificRecordBase
implements SpecificRecord


Nested Class Summary
static class Span.Builder
          RecordBuilder for Span instances.
 
Field Summary
 boolean complete
          Deprecated. 
 List<TimestampedEvent> events
          Deprecated. 
 CharSequence messageName
          Deprecated. 
 ID parentSpanID
          Deprecated. 
 CharSequence requestorHostname
          Deprecated. 
 long requestPayloadSize
          Deprecated. 
 CharSequence responderHostname
          Deprecated. 
 long responsePayloadSize
          Deprecated. 
static Schema SCHEMA$
           
 ID spanID
          Deprecated. 
 ID traceID
          Deprecated. 
 
Constructor Summary
Span()
           
 
Method Summary
 Object get(int field$)
          Return the value of a field given its position in the schema.
 Boolean getComplete()
          Gets the value of the 'complete' field.
 List<TimestampedEvent> getEvents()
          Gets the value of the 'events' field.
 CharSequence getMessageName()
          Gets the value of the 'messageName' field.
 ID getParentSpanID()
          Gets the value of the 'parentSpanID' field.
 CharSequence getRequestorHostname()
          Gets the value of the 'requestorHostname' field.
 Long getRequestPayloadSize()
          Gets the value of the 'requestPayloadSize' field.
 CharSequence getResponderHostname()
          Gets the value of the 'responderHostname' field.
 Long getResponsePayloadSize()
          Gets the value of the 'responsePayloadSize' field.
 Schema getSchema()
          The schema of this instance.
 ID getSpanID()
          Gets the value of the 'spanID' field.
 ID getTraceID()
          Gets the value of the 'traceID' field.
static Span.Builder newBuilder()
          Creates a new Span RecordBuilder
static Span.Builder newBuilder(Span.Builder other)
          Creates a new Span RecordBuilder by copying an existing Builder
static Span.Builder newBuilder(Span other)
          Creates a new Span RecordBuilder by copying an existing Span instance
 void put(int field$, Object value$)
          Set the value of a field given its position in the schema.
 void setComplete(Boolean value)
          Sets the value of the 'complete' field.
 void setEvents(List<TimestampedEvent> value)
          Sets the value of the 'events' field.
 void setMessageName(CharSequence value)
          Sets the value of the 'messageName' field.
 void setParentSpanID(ID value)
          Sets the value of the 'parentSpanID' field.
 void setRequestorHostname(CharSequence value)
          Sets the value of the 'requestorHostname' field.
 void setRequestPayloadSize(Long value)
          Sets the value of the 'requestPayloadSize' field.
 void setResponderHostname(CharSequence value)
          Sets the value of the 'responderHostname' field.
 void setResponsePayloadSize(Long value)
          Sets the value of the 'responsePayloadSize' field.
 void setSpanID(ID value)
          Sets the value of the 'spanID' field.
 void setTraceID(ID value)
          Sets the value of the 'traceID' field.
 
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEMA$

public static final Schema SCHEMA$

traceID

@Deprecated
public ID traceID
Deprecated. 

spanID

@Deprecated
public ID spanID
Deprecated. 

parentSpanID

@Deprecated
public ID parentSpanID
Deprecated. 

messageName

@Deprecated
public CharSequence messageName
Deprecated. 

requestPayloadSize

@Deprecated
public long requestPayloadSize
Deprecated. 

responsePayloadSize

@Deprecated
public long responsePayloadSize
Deprecated. 

requestorHostname

@Deprecated
public CharSequence requestorHostname
Deprecated. 

responderHostname

@Deprecated
public CharSequence responderHostname
Deprecated. 

events

@Deprecated
public List<TimestampedEvent> events
Deprecated. 

complete

@Deprecated
public boolean complete
Deprecated. 
Constructor Detail

Span

public Span()
Method Detail

getSchema

public Schema getSchema()
Description copied from interface: GenericContainer
The schema of this instance.

Specified by:
getSchema in interface GenericContainer
Specified by:
getSchema in class SpecificRecordBase

get

public Object get(int field$)
Description copied from interface: IndexedRecord
Return the value of a field given its position in the schema.

This method is not meant to be called by user code, but only by DatumWriter implementations.

Specified by:
get in interface IndexedRecord
Specified by:
get in class SpecificRecordBase

put

public void put(int field$,
                Object value$)
Description copied from interface: IndexedRecord
Set the value of a field given its position in the schema.

This method is not meant to be called by user code, but only by DatumReader implementations.

Specified by:
put in interface IndexedRecord
Specified by:
put in class SpecificRecordBase

getTraceID

public ID getTraceID()
Gets the value of the 'traceID' field.


setTraceID

public void setTraceID(ID value)
Sets the value of the 'traceID' field.

Parameters:
value - the value to set.

getSpanID

public ID getSpanID()
Gets the value of the 'spanID' field.


setSpanID

public void setSpanID(ID value)
Sets the value of the 'spanID' field.

Parameters:
value - the value to set.

getParentSpanID

public ID getParentSpanID()
Gets the value of the 'parentSpanID' field.


setParentSpanID

public void setParentSpanID(ID value)
Sets the value of the 'parentSpanID' field.

Parameters:
value - the value to set.

getMessageName

public CharSequence getMessageName()
Gets the value of the 'messageName' field.


setMessageName

public void setMessageName(CharSequence value)
Sets the value of the 'messageName' field.

Parameters:
value - the value to set.

getRequestPayloadSize

public Long getRequestPayloadSize()
Gets the value of the 'requestPayloadSize' field.


setRequestPayloadSize

public void setRequestPayloadSize(Long value)
Sets the value of the 'requestPayloadSize' field.

Parameters:
value - the value to set.

getResponsePayloadSize

public Long getResponsePayloadSize()
Gets the value of the 'responsePayloadSize' field.


setResponsePayloadSize

public void setResponsePayloadSize(Long value)
Sets the value of the 'responsePayloadSize' field.

Parameters:
value - the value to set.

getRequestorHostname

public CharSequence getRequestorHostname()
Gets the value of the 'requestorHostname' field.


setRequestorHostname

public void setRequestorHostname(CharSequence value)
Sets the value of the 'requestorHostname' field.

Parameters:
value - the value to set.

getResponderHostname

public CharSequence getResponderHostname()
Gets the value of the 'responderHostname' field.


setResponderHostname

public void setResponderHostname(CharSequence value)
Sets the value of the 'responderHostname' field.

Parameters:
value - the value to set.

getEvents

public List<TimestampedEvent> getEvents()
Gets the value of the 'events' field.


setEvents

public void setEvents(List<TimestampedEvent> value)
Sets the value of the 'events' field.

Parameters:
value - the value to set.

getComplete

public Boolean getComplete()
Gets the value of the 'complete' field.


setComplete

public void setComplete(Boolean value)
Sets the value of the 'complete' field.

Parameters:
value - the value to set.

newBuilder

public static Span.Builder newBuilder()
Creates a new Span RecordBuilder


newBuilder

public static Span.Builder newBuilder(Span.Builder other)
Creates a new Span RecordBuilder by copying an existing Builder


newBuilder

public static Span.Builder newBuilder(Span other)
Creates a new Span RecordBuilder by copying an existing Span instance



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.