@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") @InterfaceAudience.Public @InterfaceStability.Stable public class TxnInfo extends Object implements org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>, Serializable, Cloneable, Comparable<TxnInfo>
Modifier and Type | Class and Description |
---|---|
static class |
TxnInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TxnInfo() |
TxnInfo(long id,
TxnState state,
String user,
String hostname) |
TxnInfo(TxnInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(TxnInfo other) |
TxnInfo |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TxnInfo that) |
TxnInfo._Fields |
fieldForId(int fieldId) |
String |
getAgentInfo() |
Object |
getFieldValue(TxnInfo._Fields field) |
int |
getHeartbeatCount() |
String |
getHostname() |
long |
getId() |
long |
getLastHeartbeatTime() |
String |
getMetaInfo() |
long |
getStartedTime() |
TxnState |
getState() |
String |
getUser() |
int |
hashCode() |
boolean |
isSet(TxnInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAgentInfo()
Returns true if field agentInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetHeartbeatCount()
Returns true if field heartbeatCount is set (has been assigned a value) and false otherwise
|
boolean |
isSetHostname()
Returns true if field hostname 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 |
isSetLastHeartbeatTime()
Returns true if field lastHeartbeatTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetaInfo()
Returns true if field metaInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetStartedTime()
Returns true if field startedTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetState()
Returns true if field state is set (has been assigned a value) and false otherwise
|
boolean |
isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setAgentInfo(String agentInfo) |
void |
setAgentInfoIsSet(boolean value) |
void |
setFieldValue(TxnInfo._Fields field,
Object value) |
void |
setHeartbeatCount(int heartbeatCount) |
void |
setHeartbeatCountIsSet(boolean value) |
void |
setHostname(String hostname) |
void |
setHostnameIsSet(boolean value) |
void |
setId(long id) |
void |
setIdIsSet(boolean value) |
void |
setLastHeartbeatTime(long lastHeartbeatTime) |
void |
setLastHeartbeatTimeIsSet(boolean value) |
void |
setMetaInfo(String metaInfo) |
void |
setMetaInfoIsSet(boolean value) |
void |
setStartedTime(long startedTime) |
void |
setStartedTimeIsSet(boolean value) |
void |
setState(TxnState state) |
void |
setStateIsSet(boolean value) |
void |
setUser(String user) |
void |
setUserIsSet(boolean value) |
String |
toString() |
void |
unsetAgentInfo() |
void |
unsetHeartbeatCount() |
void |
unsetHostname() |
void |
unsetId() |
void |
unsetLastHeartbeatTime() |
void |
unsetMetaInfo() |
void |
unsetStartedTime() |
void |
unsetState() |
void |
unsetUser() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TxnInfo()
public TxnInfo(TxnInfo other)
public TxnInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public long getId()
public void setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public String getUser()
public void setUser(String user)
public void unsetUser()
public boolean isSetUser()
public void setUserIsSet(boolean value)
public String getHostname()
public void setHostname(String hostname)
public void unsetHostname()
public boolean isSetHostname()
public void setHostnameIsSet(boolean value)
public String getAgentInfo()
public void setAgentInfo(String agentInfo)
public void unsetAgentInfo()
public boolean isSetAgentInfo()
public void setAgentInfoIsSet(boolean value)
public int getHeartbeatCount()
public void setHeartbeatCount(int heartbeatCount)
public void unsetHeartbeatCount()
public boolean isSetHeartbeatCount()
public void setHeartbeatCountIsSet(boolean value)
public String getMetaInfo()
public void setMetaInfo(String metaInfo)
public void unsetMetaInfo()
public boolean isSetMetaInfo()
public void setMetaInfoIsSet(boolean value)
public long getStartedTime()
public void setStartedTime(long startedTime)
public void unsetStartedTime()
public boolean isSetStartedTime()
public void setStartedTimeIsSet(boolean value)
public long getLastHeartbeatTime()
public void setLastHeartbeatTime(long lastHeartbeatTime)
public void unsetLastHeartbeatTime()
public boolean isSetLastHeartbeatTime()
public void setLastHeartbeatTimeIsSet(boolean value)
public void setFieldValue(TxnInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public Object getFieldValue(TxnInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public boolean isSet(TxnInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public boolean equals(TxnInfo that)
public int compareTo(TxnInfo other)
compareTo
in interface Comparable<TxnInfo>
public TxnInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2022 The Apache Software Foundation. All rights reserved.