Package ai.heavy.thrift.server
Class TInsertChunks
- java.lang.Object
-
- ai.heavy.thrift.server.TInsertChunks
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TInsertChunks>,org.apache.thrift.TBase<TInsertChunks,TInsertChunks._Fields>,org.apache.thrift.TSerializable
public class TInsertChunks extends Object implements org.apache.thrift.TBase<TInsertChunks,TInsertChunks._Fields>, Serializable, Cloneable, Comparable<TInsertChunks>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTInsertChunks._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description List<TChunkData>dataintdb_idstatic Map<TInsertChunks._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongnum_rowsinttable_idList<Long>valid_indices
-
Constructor Summary
Constructors Constructor Description TInsertChunks()TInsertChunks(int db_id, int table_id, List<TChunkData> data, List<Long> valid_indices, long num_rows)TInsertChunks(TInsertChunks other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToData(TChunkData elem)voidaddToValid_indices(long elem)voidclear()intcompareTo(TInsertChunks other)TInsertChunksdeepCopy()booleanequals(TInsertChunks that)booleanequals(Object that)TInsertChunks._FieldsfieldForId(int fieldId)List<TChunkData>getData()Iterator<TChunkData>getDataIterator()intgetDataSize()intgetDb_id()ObjectgetFieldValue(TInsertChunks._Fields field)longgetNum_rows()intgetTable_id()List<Long>getValid_indices()Iterator<Long>getValid_indicesIterator()intgetValid_indicesSize()inthashCode()booleanisSet(TInsertChunks._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetData()Returns true if field data is set (has been assigned a value) and false otherwisebooleanisSetDb_id()Returns true if field db_id is set (has been assigned a value) and false otherwisebooleanisSetNum_rows()Returns true if field num_rows is set (has been assigned a value) and false otherwisebooleanisSetTable_id()Returns true if field table_id is set (has been assigned a value) and false otherwisebooleanisSetValid_indices()Returns true if field valid_indices is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TInsertChunkssetData(List<TChunkData> data)voidsetDataIsSet(boolean value)TInsertChunkssetDb_id(int db_id)voidsetDb_idIsSet(boolean value)voidsetFieldValue(TInsertChunks._Fields field, Object value)TInsertChunkssetNum_rows(long num_rows)voidsetNum_rowsIsSet(boolean value)TInsertChunkssetTable_id(int table_id)voidsetTable_idIsSet(boolean value)TInsertChunkssetValid_indices(List<Long> valid_indices)voidsetValid_indicesIsSet(boolean value)StringtoString()voidunsetData()voidunsetDb_id()voidunsetNum_rows()voidunsetTable_id()voidunsetValid_indices()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
db_id
public int db_id
-
table_id
public int table_id
-
data
public List<TChunkData> data
-
num_rows
public long num_rows
-
metaDataMap
public static final Map<TInsertChunks._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TInsertChunks
public TInsertChunks()
-
TInsertChunks
public TInsertChunks(int db_id, int table_id, List<TChunkData> data, List<Long> valid_indices, long num_rows)
-
TInsertChunks
public TInsertChunks(TInsertChunks other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TInsertChunks deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TInsertChunks,TInsertChunks._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TInsertChunks,TInsertChunks._Fields>
-
getDb_id
public int getDb_id()
-
setDb_id
public TInsertChunks setDb_id(int db_id)
-
unsetDb_id
public void unsetDb_id()
-
isSetDb_id
public boolean isSetDb_id()
Returns true if field db_id is set (has been assigned a value) and false otherwise
-
setDb_idIsSet
public void setDb_idIsSet(boolean value)
-
getTable_id
public int getTable_id()
-
setTable_id
public TInsertChunks setTable_id(int table_id)
-
unsetTable_id
public void unsetTable_id()
-
isSetTable_id
public boolean isSetTable_id()
Returns true if field table_id is set (has been assigned a value) and false otherwise
-
setTable_idIsSet
public void setTable_idIsSet(boolean value)
-
getDataSize
public int getDataSize()
-
getDataIterator
public Iterator<TChunkData> getDataIterator()
-
addToData
public void addToData(TChunkData elem)
-
getData
public List<TChunkData> getData()
-
setData
public TInsertChunks setData(List<TChunkData> data)
-
unsetData
public void unsetData()
-
isSetData
public boolean isSetData()
Returns true if field data is set (has been assigned a value) and false otherwise
-
setDataIsSet
public void setDataIsSet(boolean value)
-
getValid_indicesSize
public int getValid_indicesSize()
-
addToValid_indices
public void addToValid_indices(long elem)
-
setValid_indices
public TInsertChunks setValid_indices(List<Long> valid_indices)
-
unsetValid_indices
public void unsetValid_indices()
-
isSetValid_indices
public boolean isSetValid_indices()
Returns true if field valid_indices is set (has been assigned a value) and false otherwise
-
setValid_indicesIsSet
public void setValid_indicesIsSet(boolean value)
-
getNum_rows
public long getNum_rows()
-
setNum_rows
public TInsertChunks setNum_rows(long num_rows)
-
unsetNum_rows
public void unsetNum_rows()
-
isSetNum_rows
public boolean isSetNum_rows()
Returns true if field num_rows is set (has been assigned a value) and false otherwise
-
setNum_rowsIsSet
public void setNum_rowsIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TInsertChunks._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TInsertChunks,TInsertChunks._Fields>
-
getFieldValue
public Object getFieldValue(TInsertChunks._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TInsertChunks,TInsertChunks._Fields>
-
isSet
public boolean isSet(TInsertChunks._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<TInsertChunks,TInsertChunks._Fields>
-
equals
public boolean equals(TInsertChunks that)
-
compareTo
public int compareTo(TInsertChunks other)
- Specified by:
compareToin interfaceComparable<TInsertChunks>
-
fieldForId
public TInsertChunks._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TInsertChunks,TInsertChunks._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
-
-