Class TConditionalSession
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.TConditionalSession
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<TConditionalSession>
,org.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
,org.apache.thrift.TSerializable
public class TConditionalSession extends Object implements org.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>, Serializable, Cloneable, Comparable<TConditionalSession>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TConditionalSession._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<TConditionalSession._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
long
sessionId
String
tserverLock
long
ttl
-
Constructor Summary
Constructors Constructor Description TConditionalSession()
TConditionalSession(long sessionId, String tserverLock, long ttl)
TConditionalSession(TConditionalSession other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
compareTo(TConditionalSession other)
TConditionalSession
deepCopy()
boolean
equals(Object that)
boolean
equals(TConditionalSession that)
TConditionalSession._Fields
fieldForId(int fieldId)
Object
getFieldValue(TConditionalSession._Fields field)
long
getSessionId()
String
getTserverLock()
long
getTtl()
int
hashCode()
boolean
isSet(TConditionalSession._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetSessionId()
Returns true if field sessionId is set (has been assigned a value) and false otherwiseboolean
isSetTserverLock()
Returns true if field tserverLock is set (has been assigned a value) and false otherwiseboolean
isSetTtl()
Returns true if field ttl is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
void
setFieldValue(TConditionalSession._Fields field, Object value)
TConditionalSession
setSessionId(long sessionId)
void
setSessionIdIsSet(boolean value)
TConditionalSession
setTserverLock(String tserverLock)
void
setTserverLockIsSet(boolean value)
TConditionalSession
setTtl(long ttl)
void
setTtlIsSet(boolean value)
String
toString()
void
unsetSessionId()
void
unsetTserverLock()
void
unsetTtl()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
sessionId
public long sessionId
-
tserverLock
public String tserverLock
-
ttl
public long ttl
-
metaDataMap
public static final Map<TConditionalSession._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TConditionalSession
public TConditionalSession()
-
TConditionalSession
public TConditionalSession(long sessionId, String tserverLock, long ttl)
-
TConditionalSession
public TConditionalSession(TConditionalSession other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TConditionalSession deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
-
getSessionId
public long getSessionId()
-
setSessionId
public TConditionalSession setSessionId(long sessionId)
-
unsetSessionId
public void unsetSessionId()
-
isSetSessionId
public boolean isSetSessionId()
Returns true if field sessionId is set (has been assigned a value) and false otherwise
-
setSessionIdIsSet
public void setSessionIdIsSet(boolean value)
-
getTserverLock
public String getTserverLock()
-
setTserverLock
public TConditionalSession setTserverLock(String tserverLock)
-
unsetTserverLock
public void unsetTserverLock()
-
isSetTserverLock
public boolean isSetTserverLock()
Returns true if field tserverLock is set (has been assigned a value) and false otherwise
-
setTserverLockIsSet
public void setTserverLockIsSet(boolean value)
-
getTtl
public long getTtl()
-
setTtl
public TConditionalSession setTtl(long ttl)
-
unsetTtl
public void unsetTtl()
-
isSetTtl
public boolean isSetTtl()
Returns true if field ttl is set (has been assigned a value) and false otherwise
-
setTtlIsSet
public void setTtlIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TConditionalSession._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
-
getFieldValue
public Object getFieldValue(TConditionalSession._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
-
isSet
public boolean isSet(TConditionalSession._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
-
equals
public boolean equals(TConditionalSession that)
-
compareTo
public int compareTo(TConditionalSession other)
- Specified by:
compareTo
in interfaceComparable<TConditionalSession>
-
fieldForId
public TConditionalSession._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TConditionalSession,TConditionalSession._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-