public class LockRequest extends Object implements org.apache.thrift.TBase<LockRequest,LockRequest._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
LockRequest._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<LockRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
LockRequest() |
LockRequest(List<LockComponent> component,
String user,
String hostname) |
LockRequest(LockRequest other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
addToComponent(LockComponent elem) |
void |
clear() |
int |
compareTo(LockRequest other) |
LockRequest |
deepCopy() |
boolean |
equals(LockRequest that) |
boolean |
equals(Object that) |
LockRequest._Fields |
fieldForId(int fieldId) |
List<LockComponent> |
getComponent() |
Iterator<LockComponent> |
getComponentIterator() |
int |
getComponentSize() |
Object |
getFieldValue(LockRequest._Fields field) |
String |
getHostname() |
long |
getTxnid() |
String |
getUser() |
int |
hashCode() |
boolean |
isSet(LockRequest._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetComponent()
Returns true if field component 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 |
isSetTxnid()
Returns true if field txnid 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 |
setComponent(List<LockComponent> component) |
void |
setComponentIsSet(boolean value) |
void |
setFieldValue(LockRequest._Fields field,
Object value) |
void |
setHostname(String hostname) |
void |
setHostnameIsSet(boolean value) |
void |
setTxnid(long txnid) |
void |
setTxnidIsSet(boolean value) |
void |
setUser(String user) |
void |
setUserIsSet(boolean value) |
String |
toString() |
void |
unsetComponent() |
void |
unsetHostname() |
void |
unsetTxnid() |
void |
unsetUser() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<LockRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public LockRequest()
public LockRequest(List<LockComponent> component, String user, String hostname)
public LockRequest(LockRequest other)
public LockRequest deepCopy()
deepCopy
in interface org.apache.thrift.TBase<LockRequest,LockRequest._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<LockRequest,LockRequest._Fields>
public int getComponentSize()
public Iterator<LockComponent> getComponentIterator()
public void addToComponent(LockComponent elem)
public List<LockComponent> getComponent()
public void setComponent(List<LockComponent> component)
public void unsetComponent()
public boolean isSetComponent()
public void setComponentIsSet(boolean value)
public long getTxnid()
public void setTxnid(long txnid)
public void unsetTxnid()
public boolean isSetTxnid()
public void setTxnidIsSet(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(LockRequest._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<LockRequest,LockRequest._Fields>
public Object getFieldValue(LockRequest._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<LockRequest,LockRequest._Fields>
public boolean isSet(LockRequest._Fields field)
isSet
in interface org.apache.thrift.TBase<LockRequest,LockRequest._Fields>
public boolean equals(LockRequest that)
public int compareTo(LockRequest other)
compareTo
in interface Comparable<LockRequest>
public LockRequest._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<LockRequest,LockRequest._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<LockRequest,LockRequest._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<LockRequest,LockRequest._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.