Package ai.heavy.thrift.calciteserver
Class TRestriction
- java.lang.Object
-
- ai.heavy.thrift.calciteserver.TRestriction
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TRestriction>,org.apache.thrift.TBase<TRestriction,TRestriction._Fields>,org.apache.thrift.TSerializable
public class TRestriction extends Object implements org.apache.thrift.TBase<TRestriction,TRestriction._Fields>, Serializable, Cloneable, Comparable<TRestriction>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTRestriction._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Constructor Summary
Constructors Constructor Description TRestriction()TRestriction(TRestriction other)Performs a deep copy on other.TRestriction(String database, String table, String column, List<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToValues(String elem)voidclear()intcompareTo(TRestriction other)TRestrictiondeepCopy()booleanequals(TRestriction that)booleanequals(Object that)TRestriction._FieldsfieldForId(int fieldId)StringgetColumn()StringgetDatabase()ObjectgetFieldValue(TRestriction._Fields field)StringgetTable()List<String>getValues()Iterator<String>getValuesIterator()intgetValuesSize()inthashCode()booleanisSet(TRestriction._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetColumn()Returns true if field column is set (has been assigned a value) and false otherwisebooleanisSetDatabase()Returns true if field database is set (has been assigned a value) and false otherwisebooleanisSetTable()Returns true if field table is set (has been assigned a value) and false otherwisebooleanisSetValues()Returns true if field values is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TRestrictionsetColumn(String column)voidsetColumnIsSet(boolean value)TRestrictionsetDatabase(String database)voidsetDatabaseIsSet(boolean value)voidsetFieldValue(TRestriction._Fields field, Object value)TRestrictionsetTable(String table)voidsetTableIsSet(boolean value)TRestrictionsetValues(List<String> values)voidsetValuesIsSet(boolean value)StringtoString()voidunsetColumn()voidunsetDatabase()voidunsetTable()voidunsetValues()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Method Detail
-
deepCopy
public TRestriction deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TRestriction,TRestriction._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TRestriction,TRestriction._Fields>
-
getDatabase
public String getDatabase()
-
setDatabase
public TRestriction setDatabase(String database)
-
unsetDatabase
public void unsetDatabase()
-
isSetDatabase
public boolean isSetDatabase()
Returns true if field database is set (has been assigned a value) and false otherwise
-
setDatabaseIsSet
public void setDatabaseIsSet(boolean value)
-
getTable
public String getTable()
-
setTable
public TRestriction setTable(String table)
-
unsetTable
public void unsetTable()
-
isSetTable
public boolean isSetTable()
Returns true if field table is set (has been assigned a value) and false otherwise
-
setTableIsSet
public void setTableIsSet(boolean value)
-
getColumn
public String getColumn()
-
setColumn
public TRestriction setColumn(String column)
-
unsetColumn
public void unsetColumn()
-
isSetColumn
public boolean isSetColumn()
Returns true if field column is set (has been assigned a value) and false otherwise
-
setColumnIsSet
public void setColumnIsSet(boolean value)
-
getValuesSize
public int getValuesSize()
-
addToValues
public void addToValues(String elem)
-
setValues
public TRestriction setValues(List<String> values)
-
unsetValues
public void unsetValues()
-
isSetValues
public boolean isSetValues()
Returns true if field values is set (has been assigned a value) and false otherwise
-
setValuesIsSet
public void setValuesIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TRestriction._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TRestriction,TRestriction._Fields>
-
getFieldValue
public Object getFieldValue(TRestriction._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TRestriction,TRestriction._Fields>
-
isSet
public boolean isSet(TRestriction._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TRestriction,TRestriction._Fields>
-
equals
public boolean equals(TRestriction that)
-
compareTo
public int compareTo(TRestriction other)
- Specified by:
compareToin interfaceComparable<TRestriction>
-
fieldForId
public TRestriction._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TRestriction,TRestriction._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin 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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-