public class Span extends SpecificRecordBase implements SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Span.Builder
RecordBuilder for Span instances.
|
Modifier and Type | Field and Description |
---|---|
boolean |
complete
Deprecated.
|
List<TimestampedEvent> |
events
Deprecated.
|
String |
messageName
Deprecated.
|
ID |
parentSpanID
Deprecated.
|
String |
requestorHostname
Deprecated.
|
long |
requestPayloadSize
Deprecated.
|
String |
responderHostname
Deprecated.
|
long |
responsePayloadSize
Deprecated.
|
static Schema |
SCHEMA$ |
ID |
spanID
Deprecated.
|
ID |
traceID
Deprecated.
|
Constructor and Description |
---|
Span()
Default constructor.
|
Span(ID traceID,
ID spanID,
ID parentSpanID,
String messageName,
Long requestPayloadSize,
Long responsePayloadSize,
String requestorHostname,
String responderHostname,
List<TimestampedEvent> events,
Boolean complete)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$)
Return the value of a field given its position in the schema.
|
static Schema |
getClassSchema() |
Boolean |
getComplete()
Gets the value of the 'complete' field.
|
List<TimestampedEvent> |
getEvents()
Gets the value of the 'events' field.
|
String |
getMessageName()
Gets the value of the 'messageName' field.
|
ID |
getParentSpanID()
Gets the value of the 'parentSpanID' field.
|
String |
getRequestorHostname()
Gets the value of the 'requestorHostname' field.
|
Long |
getRequestPayloadSize()
Gets the value of the 'requestPayloadSize' field.
|
String |
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(String value)
Sets the value of the 'messageName' field.
|
void |
setParentSpanID(ID value)
Sets the value of the 'parentSpanID' field.
|
void |
setRequestorHostname(String value)
Sets the value of the 'requestorHostname' field.
|
void |
setRequestPayloadSize(Long value)
Sets the value of the 'requestPayloadSize' field.
|
void |
setResponderHostname(String 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.
|
public static final Schema SCHEMA$
@Deprecated public ID traceID
@Deprecated public ID spanID
@Deprecated public ID parentSpanID
@Deprecated public String messageName
@Deprecated public long requestPayloadSize
@Deprecated public long responsePayloadSize
@Deprecated public String requestorHostname
@Deprecated public String responderHostname
@Deprecated public List<TimestampedEvent> events
@Deprecated public boolean complete
public Span()
\#newBuilder()
.public static Schema getClassSchema()
public Schema getSchema()
GenericContainer
getSchema
in interface GenericContainer
getSchema
in class SpecificRecordBase
public Object get(int field$)
IndexedRecord
This method is not meant to be called by user code, but only by DatumWriter
implementations.
get
in interface IndexedRecord
get
in class SpecificRecordBase
public void put(int field$, Object value$)
IndexedRecord
This method is not meant to be called by user code, but only by DatumReader
implementations.
put
in interface IndexedRecord
put
in class SpecificRecordBase
public ID getTraceID()
public void setTraceID(ID value)
value
- the value to set.public ID getSpanID()
public void setSpanID(ID value)
value
- the value to set.public ID getParentSpanID()
public void setParentSpanID(ID value)
value
- the value to set.public String getMessageName()
public void setMessageName(String value)
value
- the value to set.public Long getRequestPayloadSize()
public void setRequestPayloadSize(Long value)
value
- the value to set.public Long getResponsePayloadSize()
public void setResponsePayloadSize(Long value)
value
- the value to set.public String getRequestorHostname()
public void setRequestorHostname(String value)
value
- the value to set.public String getResponderHostname()
public void setResponderHostname(String value)
value
- the value to set.public List<TimestampedEvent> getEvents()
public void setEvents(List<TimestampedEvent> value)
value
- the value to set.public Boolean getComplete()
public void setComplete(Boolean value)
value
- the value to set.public static Span.Builder newBuilder()
public static Span.Builder newBuilder(Span.Builder other)
public static Span.Builder newBuilder(Span other)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.