Class TSInsertRecordReq
- java.lang.Object
-
- org.apache.iotdb.service.rpc.thrift.TSInsertRecordReq
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TSInsertRecordReq>,org.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2023-12-27") public class TSInsertRecordReq extends Object implements org.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._Fields>, Serializable, Cloneable, Comparable<TSInsertRecordReq>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTSInsertRecordReq._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description booleanisAlignedList<String>measurementsstatic Map<TSInsertRecordReq._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringprefixPathlongsessionIdlongtimestampByteBuffervalues
-
Constructor Summary
Constructors Constructor Description TSInsertRecordReq()TSInsertRecordReq(long sessionId, String prefixPath, List<String> measurements, ByteBuffer values, long timestamp)TSInsertRecordReq(TSInsertRecordReq other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToMeasurements(String elem)ByteBufferbufferForValues()voidclear()intcompareTo(TSInsertRecordReq other)TSInsertRecordReqdeepCopy()booleanequals(Object that)booleanequals(TSInsertRecordReq that)TSInsertRecordReq._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TSInsertRecordReq._Fields field)List<String>getMeasurements()Iterator<String>getMeasurementsIterator()intgetMeasurementsSize()StringgetPrefixPath()longgetSessionId()longgetTimestamp()byte[]getValues()inthashCode()booleanisIsAligned()booleanisSet(TSInsertRecordReq._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetIsAligned()Returns true if field isAligned is set (has been assigned a value) and false otherwisebooleanisSetMeasurements()Returns true if field measurements is set (has been assigned a value) and false otherwisebooleanisSetPrefixPath()Returns true if field prefixPath is set (has been assigned a value) and false otherwisebooleanisSetSessionId()Returns true if field sessionId is set (has been assigned a value) and false otherwisebooleanisSetTimestamp()Returns true if field timestamp 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)voidsetFieldValue(TSInsertRecordReq._Fields field, Object value)TSInsertRecordReqsetIsAligned(boolean isAligned)voidsetIsAlignedIsSet(boolean value)TSInsertRecordReqsetMeasurements(List<String> measurements)voidsetMeasurementsIsSet(boolean value)TSInsertRecordReqsetPrefixPath(String prefixPath)voidsetPrefixPathIsSet(boolean value)TSInsertRecordReqsetSessionId(long sessionId)voidsetSessionIdIsSet(boolean value)TSInsertRecordReqsetTimestamp(long timestamp)voidsetTimestampIsSet(boolean value)TSInsertRecordReqsetValues(byte[] values)TSInsertRecordReqsetValues(ByteBuffer values)voidsetValuesIsSet(boolean value)StringtoString()voidunsetIsAligned()voidunsetMeasurements()voidunsetPrefixPath()voidunsetSessionId()voidunsetTimestamp()voidunsetValues()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
sessionId
public long sessionId
-
prefixPath
public String prefixPath
-
values
public ByteBuffer values
-
timestamp
public long timestamp
-
isAligned
public boolean isAligned
-
metaDataMap
public static final Map<TSInsertRecordReq._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TSInsertRecordReq
public TSInsertRecordReq()
-
TSInsertRecordReq
public TSInsertRecordReq(long sessionId, String prefixPath, List<String> measurements, ByteBuffer values, long timestamp)
-
TSInsertRecordReq
public TSInsertRecordReq(TSInsertRecordReq other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TSInsertRecordReq deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._Fields>
-
getSessionId
public long getSessionId()
-
setSessionId
public TSInsertRecordReq 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)
-
getPrefixPath
public String getPrefixPath()
-
setPrefixPath
public TSInsertRecordReq setPrefixPath(String prefixPath)
-
unsetPrefixPath
public void unsetPrefixPath()
-
isSetPrefixPath
public boolean isSetPrefixPath()
Returns true if field prefixPath is set (has been assigned a value) and false otherwise
-
setPrefixPathIsSet
public void setPrefixPathIsSet(boolean value)
-
getMeasurementsSize
public int getMeasurementsSize()
-
addToMeasurements
public void addToMeasurements(String elem)
-
setMeasurements
public TSInsertRecordReq setMeasurements(List<String> measurements)
-
unsetMeasurements
public void unsetMeasurements()
-
isSetMeasurements
public boolean isSetMeasurements()
Returns true if field measurements is set (has been assigned a value) and false otherwise
-
setMeasurementsIsSet
public void setMeasurementsIsSet(boolean value)
-
getValues
public byte[] getValues()
-
bufferForValues
public ByteBuffer bufferForValues()
-
setValues
public TSInsertRecordReq setValues(byte[] values)
-
setValues
public TSInsertRecordReq setValues(ByteBuffer 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)
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public TSInsertRecordReq setTimestamp(long timestamp)
-
unsetTimestamp
public void unsetTimestamp()
-
isSetTimestamp
public boolean isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise
-
setTimestampIsSet
public void setTimestampIsSet(boolean value)
-
isIsAligned
public boolean isIsAligned()
-
setIsAligned
public TSInsertRecordReq setIsAligned(boolean isAligned)
-
unsetIsAligned
public void unsetIsAligned()
-
isSetIsAligned
public boolean isSetIsAligned()
Returns true if field isAligned is set (has been assigned a value) and false otherwise
-
setIsAlignedIsSet
public void setIsAlignedIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TSInsertRecordReq._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._Fields>
-
getFieldValue
public Object getFieldValue(TSInsertRecordReq._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._Fields>
-
isSet
public boolean isSet(TSInsertRecordReq._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<TSInsertRecordReq,TSInsertRecordReq._Fields>
-
equals
public boolean equals(TSInsertRecordReq that)
-
compareTo
public int compareTo(TSInsertRecordReq other)
- Specified by:
compareToin interfaceComparable<TSInsertRecordReq>
-
fieldForId
public TSInsertRecordReq._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TSInsertRecordReq,TSInsertRecordReq._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
-
-