@Generated(value="Autogenerated by Thrift Compiler (0.9.2)", date="2015-11-8") public class Span extends Object implements org.apache.thrift.TBase<Span,Span._Fields>, Serializable, Cloneable, Comparable<Span>
| Modifier and Type | Class and Description |
|---|---|
static class |
Span._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
List<Annotation> |
annotations |
List<BinaryAnnotation> |
binary_annotations |
boolean |
debug |
long |
duration
Measurement of duration in microseconds, used to support queries.
|
long |
id |
static Map<Span._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
String |
name
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
|
long |
parent_id |
Long |
startTick
Internal field, used for deriving duration with
System.nanoTime(). |
long |
timestamp
Microseconds from epoch of the creation of this span.
|
long |
trace_id |
| Constructor and Description |
|---|
Span() |
Span(long trace_id,
String name,
long id,
List<Annotation> annotations,
List<BinaryAnnotation> binary_annotations) |
Span(Span other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToAnnotations(Annotation elem) |
void |
addToBinary_annotations(BinaryAnnotation elem) |
void |
clear() |
int |
compareTo(Span other) |
Span |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(Span that) |
Span._Fields |
fieldForId(int fieldId) |
List<Annotation> |
getAnnotations() |
Iterator<Annotation> |
getAnnotationsIterator() |
int |
getAnnotationsSize() |
List<BinaryAnnotation> |
getBinary_annotations() |
Iterator<BinaryAnnotation> |
getBinary_annotationsIterator() |
int |
getBinary_annotationsSize() |
long |
getDuration()
Measurement of duration in microseconds, used to support queries.
|
Object |
getFieldValue(Span._Fields field) |
long |
getId() |
String |
getName()
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
|
long |
getParent_id() |
long |
getTimestamp()
Microseconds from epoch of the creation of this span.
|
long |
getTrace_id() |
int |
hashCode() |
boolean |
isDebug() |
boolean |
isSet(Span._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAnnotations()
Returns true if field annotations is set (has been assigned a value) and false otherwise
|
boolean |
isSetBinary_annotations()
Returns true if field binary_annotations is set (has been assigned a value) and false otherwise
|
boolean |
isSetDebug()
Returns true if field debug is set (has been assigned a value) and false otherwise
|
boolean |
isSetDuration()
Returns true if field duration is set (has been assigned a value) and false otherwise
|
boolean |
isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise
|
boolean |
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise
|
boolean |
isSetParent_id()
Returns true if field parent_id is set (has been assigned a value) and false otherwise
|
boolean |
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise
|
boolean |
isSetTrace_id()
Returns true if field trace_id is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
Span |
setAnnotations(List<Annotation> annotations) |
void |
setAnnotationsIsSet(boolean value) |
Span |
setBinary_annotations(List<BinaryAnnotation> binary_annotations) |
void |
setBinary_annotationsIsSet(boolean value) |
Span |
setDebug(boolean debug) |
void |
setDebugIsSet(boolean value) |
Span |
setDuration(long duration)
Measurement of duration in microseconds, used to support queries.
|
void |
setDurationIsSet(boolean value) |
void |
setFieldValue(Span._Fields field,
Object value) |
Span |
setId(long id) |
void |
setIdIsSet(boolean value) |
Span |
setName(String name)
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
|
void |
setNameIsSet(boolean value) |
Span |
setParent_id(long parent_id) |
void |
setParent_idIsSet(boolean value) |
Span |
setTimestamp(long timestamp)
Microseconds from epoch of the creation of this span.
|
void |
setTimestampIsSet(boolean value) |
Span |
setTrace_id(long trace_id) |
void |
setTrace_idIsSet(boolean value) |
String |
toString() |
void |
unsetAnnotations() |
void |
unsetBinary_annotations() |
void |
unsetDebug() |
void |
unsetDuration() |
void |
unsetId() |
void |
unsetName() |
void |
unsetParent_id() |
void |
unsetTimestamp() |
void |
unsetTrace_id() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public volatile Long startTick
System.nanoTime().public long trace_id
public String name
public long id
public long parent_id
public List<Annotation> annotations
public List<BinaryAnnotation> binary_annotations
public boolean debug
public long timestamp
public long duration
public static final Map<Span._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Span()
public Span(long trace_id,
String name,
long id,
List<Annotation> annotations,
List<BinaryAnnotation> binary_annotations)
public Span(Span other)
public Span deepCopy()
deepCopy in interface org.apache.thrift.TBase<Span,Span._Fields>public void clear()
clear in interface org.apache.thrift.TBase<Span,Span._Fields>public long getTrace_id()
public Span setTrace_id(long trace_id)
public void unsetTrace_id()
public boolean isSetTrace_id()
public void setTrace_idIsSet(boolean value)
public String getName()
public Span setName(String name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public long getId()
public Span setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public long getParent_id()
public Span setParent_id(long parent_id)
public void unsetParent_id()
public boolean isSetParent_id()
public void setParent_idIsSet(boolean value)
public int getAnnotationsSize()
public Iterator<Annotation> getAnnotationsIterator()
public void addToAnnotations(Annotation elem)
public List<Annotation> getAnnotations()
public Span setAnnotations(List<Annotation> annotations)
public void unsetAnnotations()
public boolean isSetAnnotations()
public void setAnnotationsIsSet(boolean value)
public int getBinary_annotationsSize()
public Iterator<BinaryAnnotation> getBinary_annotationsIterator()
public void addToBinary_annotations(BinaryAnnotation elem)
public List<BinaryAnnotation> getBinary_annotations()
public Span setBinary_annotations(List<BinaryAnnotation> binary_annotations)
public void unsetBinary_annotations()
public boolean isSetBinary_annotations()
public void setBinary_annotationsIsSet(boolean value)
public boolean isDebug()
public Span setDebug(boolean debug)
public void unsetDebug()
public boolean isSetDebug()
public void setDebugIsSet(boolean value)
public long getTimestamp()
public Span setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public long getDuration()
public Span setDuration(long duration)
public void unsetDuration()
public boolean isSetDuration()
public void setDurationIsSet(boolean value)
public void setFieldValue(Span._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<Span,Span._Fields>public Object getFieldValue(Span._Fields field)
getFieldValue in interface org.apache.thrift.TBase<Span,Span._Fields>public boolean isSet(Span._Fields field)
isSet in interface org.apache.thrift.TBase<Span,Span._Fields>public boolean equals(Span that)
public int compareTo(Span other)
compareTo in interface Comparable<Span>public Span._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<Span,Span._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<Span,Span._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<Span,Span._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015. All rights reserved.