org.apache.accumulo.trace.thrift
Class RemoteSpan

java.lang.Object
  extended by org.apache.accumulo.trace.thrift.RemoteSpan
All Implemented Interfaces:
Serializable, Cloneable, Comparable<RemoteSpan>, org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

public class RemoteSpan
extends Object
implements org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class RemoteSpan._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 Map<String,String> data
           
 String description
           
static Map<RemoteSpan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 long parentId
           
 String sender
           
 long spanId
           
 long start
           
 long stop
           
 String svc
           
 long traceId
           
 
Constructor Summary
RemoteSpan()
           
RemoteSpan(RemoteSpan other)
          Performs a deep copy on other.
RemoteSpan(String sender, String svc, long traceId, long spanId, long parentId, long start, long stop, String description, Map<String,String> data)
           
 
Method Summary
 void clear()
           
 int compareTo(RemoteSpan other)
           
 RemoteSpan deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(RemoteSpan that)
           
 RemoteSpan._Fields fieldForId(int fieldId)
           
 Map<String,String> getData()
           
 int getDataSize()
           
 String getDescription()
           
 Object getFieldValue(RemoteSpan._Fields field)
           
 long getParentId()
           
 String getSender()
           
 long getSpanId()
           
 long getStart()
           
 long getStop()
           
 String getSvc()
           
 long getTraceId()
           
 int hashCode()
           
 boolean isSet(RemoteSpan._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetData()
          Returns true if field data is set (has been assigned a value) and false otherwise
 boolean isSetDescription()
          Returns true if field description is set (has been assigned a value) and false otherwise
 boolean isSetParentId()
          Returns true if field parentId is set (has been assigned a value) and false otherwise
 boolean isSetSender()
          Returns true if field sender is set (has been assigned a value) and false otherwise
 boolean isSetSpanId()
          Returns true if field spanId is set (has been assigned a value) and false otherwise
 boolean isSetStart()
          Returns true if field start is set (has been assigned a value) and false otherwise
 boolean isSetStop()
          Returns true if field stop is set (has been assigned a value) and false otherwise
 boolean isSetSvc()
          Returns true if field svc is set (has been assigned a value) and false otherwise
 boolean isSetTraceId()
          Returns true if field traceId is set (has been assigned a value) and false otherwise
 void putToData(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 RemoteSpan setData(Map<String,String> data)
           
 void setDataIsSet(boolean value)
           
 RemoteSpan setDescription(String description)
           
 void setDescriptionIsSet(boolean value)
           
 void setFieldValue(RemoteSpan._Fields field, Object value)
           
 RemoteSpan setParentId(long parentId)
           
 void setParentIdIsSet(boolean value)
           
 RemoteSpan setSender(String sender)
           
 void setSenderIsSet(boolean value)
           
 RemoteSpan setSpanId(long spanId)
           
 void setSpanIdIsSet(boolean value)
           
 RemoteSpan setStart(long start)
           
 void setStartIsSet(boolean value)
           
 RemoteSpan setStop(long stop)
           
 void setStopIsSet(boolean value)
           
 RemoteSpan setSvc(String svc)
           
 void setSvcIsSet(boolean value)
           
 RemoteSpan setTraceId(long traceId)
           
 void setTraceIdIsSet(boolean value)
           
 String toString()
           
 void unsetData()
           
 void unsetDescription()
           
 void unsetParentId()
           
 void unsetSender()
           
 void unsetSpanId()
           
 void unsetStart()
           
 void unsetStop()
           
 void unsetSvc()
           
 void unsetTraceId()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sender

public String sender

svc

public String svc

traceId

public long traceId

spanId

public long spanId

parentId

public long parentId

start

public long start

stop

public long stop

description

public String description

data

public Map<String,String> data

metaDataMap

public static final Map<RemoteSpan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

RemoteSpan

public RemoteSpan()

RemoteSpan

public RemoteSpan(String sender,
                  String svc,
                  long traceId,
                  long spanId,
                  long parentId,
                  long start,
                  long stop,
                  String description,
                  Map<String,String> data)

RemoteSpan

public RemoteSpan(RemoteSpan other)
Performs a deep copy on other.

Method Detail

deepCopy

public RemoteSpan deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

getSender

public String getSender()

setSender

public RemoteSpan setSender(String sender)

unsetSender

public void unsetSender()

isSetSender

public boolean isSetSender()
Returns true if field sender is set (has been assigned a value) and false otherwise


setSenderIsSet

public void setSenderIsSet(boolean value)

getSvc

public String getSvc()

setSvc

public RemoteSpan setSvc(String svc)

unsetSvc

public void unsetSvc()

isSetSvc

public boolean isSetSvc()
Returns true if field svc is set (has been assigned a value) and false otherwise


setSvcIsSet

public void setSvcIsSet(boolean value)

getTraceId

public long getTraceId()

setTraceId

public RemoteSpan setTraceId(long traceId)

unsetTraceId

public void unsetTraceId()

isSetTraceId

public boolean isSetTraceId()
Returns true if field traceId is set (has been assigned a value) and false otherwise


setTraceIdIsSet

public void setTraceIdIsSet(boolean value)

getSpanId

public long getSpanId()

setSpanId

public RemoteSpan setSpanId(long spanId)

unsetSpanId

public void unsetSpanId()

isSetSpanId

public boolean isSetSpanId()
Returns true if field spanId is set (has been assigned a value) and false otherwise


setSpanIdIsSet

public void setSpanIdIsSet(boolean value)

getParentId

public long getParentId()

setParentId

public RemoteSpan setParentId(long parentId)

unsetParentId

public void unsetParentId()

isSetParentId

public boolean isSetParentId()
Returns true if field parentId is set (has been assigned a value) and false otherwise


setParentIdIsSet

public void setParentIdIsSet(boolean value)

getStart

public long getStart()

setStart

public RemoteSpan setStart(long start)

unsetStart

public void unsetStart()

isSetStart

public boolean isSetStart()
Returns true if field start is set (has been assigned a value) and false otherwise


setStartIsSet

public void setStartIsSet(boolean value)

getStop

public long getStop()

setStop

public RemoteSpan setStop(long stop)

unsetStop

public void unsetStop()

isSetStop

public boolean isSetStop()
Returns true if field stop is set (has been assigned a value) and false otherwise


setStopIsSet

public void setStopIsSet(boolean value)

getDescription

public String getDescription()

setDescription

public RemoteSpan setDescription(String description)

unsetDescription

public void unsetDescription()

isSetDescription

public boolean isSetDescription()
Returns true if field description is set (has been assigned a value) and false otherwise


setDescriptionIsSet

public void setDescriptionIsSet(boolean value)

getDataSize

public int getDataSize()

putToData

public void putToData(String key,
                      String val)

getData

public Map<String,String> getData()

setData

public RemoteSpan setData(Map<String,String> data)

unsetData

public void unsetData()

isSetData

public boolean isSetData()
Returns true if field data is set (has been assigned a value) and false otherwise


setDataIsSet

public void setDataIsSet(boolean value)

setFieldValue

public void setFieldValue(RemoteSpan._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

getFieldValue

public Object getFieldValue(RemoteSpan._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

isSet

public boolean isSet(RemoteSpan._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(RemoteSpan that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(RemoteSpan other)
Specified by:
compareTo in interface Comparable<RemoteSpan>

fieldForId

public RemoteSpan._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<RemoteSpan,RemoteSpan._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.