Package dev.vality.xrates.rate
Class SinkEvent
java.lang.Object
dev.vality.xrates.rate.SinkEvent
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SinkEvent>,org.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-02-22")
public class SinkEvent
extends Object
implements org.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>, Serializable, Cloneable, Comparable<SinkEvent>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSinkEvent._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description Stringcreated_atlongidstatic Map<SinkEvent._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapEventpayloadlongsequence_idStringsource -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(SinkEvent other)SinkEventdeepCopy()booleanequals(SinkEvent that)booleanequals(Object that)SinkEvent._FieldsfieldForId(int fieldId)StringgetCreatedAt()Map<SinkEvent._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()SinkEvent._Fields[]getFields()ObjectgetFieldValue(SinkEvent._Fields field)longgetId()EventgetPayload()longgetSequenceId()StringgetSource()inthashCode()booleanisSet(SinkEvent._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanisSetPayload()Returns true if field payload is set (has been assigned a value) and false otherwisebooleanisSetSequenceId()Returns true if field sequence_id is set (has been assigned a value) and false otherwisebooleanisSetSource()Returns true if field source is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)SinkEventsetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)voidsetFieldValue(SinkEvent._Fields field, Object value)SinkEventsetId(long id)voidsetIdIsSet(boolean value)SinkEventsetPayload(Event payload)voidsetPayloadIsSet(boolean value)SinkEventsetSequenceId(long sequence_id)voidsetSequenceIdIsSet(boolean value)SinkEventsetSource(String source)voidsetSourceIsSet(boolean value)StringtoString()voidunsetCreatedAt()voidunsetId()voidunsetPayload()voidunsetSequenceId()voidunsetSource()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
public long id -
created_at
-
source
-
payload
-
sequence_id
public long sequence_id -
metaDataMap
-
-
Constructor Details
-
SinkEvent
public SinkEvent() -
SinkEvent
-
SinkEvent
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
getId
public long getId() -
setId
-
unsetId
public void unsetId() -
isSetId
public boolean isSetId()Returns true if field id is set (has been assigned a value) and false otherwise -
setIdIsSet
public void setIdIsSet(boolean value) -
getCreatedAt
-
setCreatedAt
-
unsetCreatedAt
public void unsetCreatedAt() -
isSetCreatedAt
public boolean isSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwise -
setCreatedAtIsSet
public void setCreatedAtIsSet(boolean value) -
getSource
-
setSource
-
unsetSource
public void unsetSource() -
isSetSource
public boolean isSetSource()Returns true if field source is set (has been assigned a value) and false otherwise -
setSourceIsSet
public void setSourceIsSet(boolean value) -
getPayload
-
setPayload
-
unsetPayload
public void unsetPayload() -
isSetPayload
public boolean isSetPayload()Returns true if field payload is set (has been assigned a value) and false otherwise -
setPayloadIsSet
public void setPayloadIsSet(boolean value) -
getSequenceId
public long getSequenceId() -
setSequenceId
-
unsetSequenceId
public void unsetSequenceId() -
isSetSequenceId
public boolean isSetSequenceId()Returns true if field sequence_id is set (has been assigned a value) and false otherwise -
setSequenceIdIsSet
public void setSequenceIdIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<SinkEvent>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<SinkEvent,SinkEvent._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
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-