public class ShowLocksResponseElement extends Object implements org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
ShowLocksResponseElement._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<ShowLocksResponseElement._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
ShowLocksResponseElement() |
ShowLocksResponseElement(long lockid,
String dbname,
LockState state,
LockType type,
long lastheartbeat,
String user,
String hostname) |
ShowLocksResponseElement(ShowLocksResponseElement other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(ShowLocksResponseElement other) |
ShowLocksResponseElement |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(ShowLocksResponseElement that) |
ShowLocksResponseElement._Fields |
fieldForId(int fieldId) |
long |
getAcquiredat() |
String |
getDbname() |
Object |
getFieldValue(ShowLocksResponseElement._Fields field) |
String |
getHostname() |
long |
getLastheartbeat() |
long |
getLockid() |
String |
getPartname() |
LockState |
getState() |
String |
getTablename() |
long |
getTxnid() |
LockType |
getType() |
String |
getUser() |
int |
hashCode() |
boolean |
isSet(ShowLocksResponseElement._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAcquiredat()
Returns true if field acquiredat is set (has been assigned a value) and false otherwise
|
boolean |
isSetDbname()
Returns true if field dbname 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 |
isSetLastheartbeat()
Returns true if field lastheartbeat is set (has been assigned a value) and false otherwise
|
boolean |
isSetLockid()
Returns true if field lockid is set (has been assigned a value) and false otherwise
|
boolean |
isSetPartname()
Returns true if field partname 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 |
isSetTablename()
Returns true if field tablename is set (has been assigned a value) and false otherwise
|
boolean |
isSetTxnid()
Returns true if field txnid is set (has been assigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type 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 |
setAcquiredat(long acquiredat) |
void |
setAcquiredatIsSet(boolean value) |
void |
setDbname(String dbname) |
void |
setDbnameIsSet(boolean value) |
void |
setFieldValue(ShowLocksResponseElement._Fields field,
Object value) |
void |
setHostname(String hostname) |
void |
setHostnameIsSet(boolean value) |
void |
setLastheartbeat(long lastheartbeat) |
void |
setLastheartbeatIsSet(boolean value) |
void |
setLockid(long lockid) |
void |
setLockidIsSet(boolean value) |
void |
setPartname(String partname) |
void |
setPartnameIsSet(boolean value) |
void |
setState(LockState state) |
void |
setStateIsSet(boolean value) |
void |
setTablename(String tablename) |
void |
setTablenameIsSet(boolean value) |
void |
setTxnid(long txnid) |
void |
setTxnidIsSet(boolean value) |
void |
setType(LockType type) |
void |
setTypeIsSet(boolean value) |
void |
setUser(String user) |
void |
setUserIsSet(boolean value) |
String |
toString() |
void |
unsetAcquiredat() |
void |
unsetDbname() |
void |
unsetHostname() |
void |
unsetLastheartbeat() |
void |
unsetLockid() |
void |
unsetPartname() |
void |
unsetState() |
void |
unsetTablename() |
void |
unsetTxnid() |
void |
unsetType() |
void |
unsetUser() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<ShowLocksResponseElement._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ShowLocksResponseElement()
public ShowLocksResponseElement(long lockid, String dbname, LockState state, LockType type, long lastheartbeat, String user, String hostname)
public ShowLocksResponseElement(ShowLocksResponseElement other)
public ShowLocksResponseElement deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
public long getLockid()
public void setLockid(long lockid)
public void unsetLockid()
public boolean isSetLockid()
public void setLockidIsSet(boolean value)
public String getDbname()
public void setDbname(String dbname)
public void unsetDbname()
public boolean isSetDbname()
public void setDbnameIsSet(boolean value)
public String getTablename()
public void setTablename(String tablename)
public void unsetTablename()
public boolean isSetTablename()
public void setTablenameIsSet(boolean value)
public String getPartname()
public void setPartname(String partname)
public void unsetPartname()
public boolean isSetPartname()
public void setPartnameIsSet(boolean value)
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public long getTxnid()
public void setTxnid(long txnid)
public void unsetTxnid()
public boolean isSetTxnid()
public void setTxnidIsSet(boolean value)
public long getLastheartbeat()
public void setLastheartbeat(long lastheartbeat)
public void unsetLastheartbeat()
public boolean isSetLastheartbeat()
public void setLastheartbeatIsSet(boolean value)
public long getAcquiredat()
public void setAcquiredat(long acquiredat)
public void unsetAcquiredat()
public boolean isSetAcquiredat()
public void setAcquiredatIsSet(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 void setFieldValue(ShowLocksResponseElement._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
public Object getFieldValue(ShowLocksResponseElement._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
public boolean isSet(ShowLocksResponseElement._Fields field)
isSet
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
public boolean equals(ShowLocksResponseElement that)
public int compareTo(ShowLocksResponseElement other)
compareTo
in interface Comparable<ShowLocksResponseElement>
public ShowLocksResponseElement._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ShowLocksResponseElement,ShowLocksResponseElement._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<ShowLocksResponseElement,ShowLocksResponseElement._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.