Package dev.vality.machinegun.eventsink
Class MachineEvent
java.lang.Object
dev.vality.machinegun.eventsink.MachineEvent
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<MachineEvent>,org.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-05-24")
public class MachineEvent
extends Object
implements org.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>, Serializable, Cloneable, Comparable<MachineEvent>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMachineEvent._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_atValuedatalongevent_idИдентификатор события.intformat_versionstatic Map<MachineEvent._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringsource_idStringsource_ns -
Constructor Summary
Constructors Constructor Description MachineEvent()MachineEvent(MachineEvent other)Performs a deep copy on other.MachineEvent(String source_ns, String source_id, long event_id, String created_at, Value data) -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(MachineEvent other)MachineEventdeepCopy()booleanequals(MachineEvent that)booleanequals(Object that)MachineEvent._FieldsfieldForId(int fieldId)StringgetCreatedAt()ValuegetData()longgetEventId()Идентификатор события.Map<MachineEvent._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()MachineEvent._Fields[]getFields()ObjectgetFieldValue(MachineEvent._Fields field)intgetFormatVersion()StringgetSourceId()StringgetSourceNs()inthashCode()booleanisSet(MachineEvent._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 otherwisebooleanisSetData()Returns true if field data is set (has been assigned a value) and false otherwisebooleanisSetEventId()Returns true if field event_id is set (has been assigned a value) and false otherwisebooleanisSetFormatVersion()Returns true if field format_version is set (has been assigned a value) and false otherwisebooleanisSetSourceId()Returns true if field source_id is set (has been assigned a value) and false otherwisebooleanisSetSourceNs()Returns true if field source_ns is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)MachineEventsetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)MachineEventsetData(Value data)voidsetDataIsSet(boolean value)MachineEventsetEventId(long event_id)Идентификатор события.voidsetEventIdIsSet(boolean value)voidsetFieldValue(MachineEvent._Fields field, Object value)MachineEventsetFormatVersion(int format_version)voidsetFormatVersionIsSet(boolean value)MachineEventsetSourceId(String source_id)voidsetSourceIdIsSet(boolean value)MachineEventsetSourceNs(String source_ns)voidsetSourceNsIsSet(boolean value)StringtoString()voidunsetCreatedAt()voidunsetData()voidunsetEventId()voidunsetFormatVersion()voidunsetSourceId()voidunsetSourceNs()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
source_ns
-
source_id
-
event_id
public long event_idИдентификатор события. Монотонно без пропусков возрастающее целочисленное значение, уникальное в пределах `source_id`. Задает порядок порождения событий в пределах одного объекта. -
created_at
-
format_version
public int format_version -
data
-
metaDataMap
public static final Map<MachineEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
MachineEvent
public MachineEvent() -
MachineEvent
-
MachineEvent
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>
-
getSourceNs
-
setSourceNs
-
unsetSourceNs
public void unsetSourceNs() -
isSetSourceNs
public boolean isSetSourceNs()Returns true if field source_ns is set (has been assigned a value) and false otherwise -
setSourceNsIsSet
public void setSourceNsIsSet(boolean value) -
getSourceId
-
setSourceId
-
unsetSourceId
public void unsetSourceId() -
isSetSourceId
public boolean isSetSourceId()Returns true if field source_id is set (has been assigned a value) and false otherwise -
setSourceIdIsSet
public void setSourceIdIsSet(boolean value) -
getEventId
public long getEventId()Идентификатор события. Монотонно без пропусков возрастающее целочисленное значение, уникальное в пределах `source_id`. Задает порядок порождения событий в пределах одного объекта. -
setEventId
Идентификатор события. Монотонно без пропусков возрастающее целочисленное значение, уникальное в пределах `source_id`. Задает порядок порождения событий в пределах одного объекта. -
unsetEventId
public void unsetEventId() -
isSetEventId
public boolean isSetEventId()Returns true if field event_id is set (has been assigned a value) and false otherwise -
setEventIdIsSet
public void setEventIdIsSet(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) -
getFormatVersion
public int getFormatVersion() -
setFormatVersion
-
unsetFormatVersion
public void unsetFormatVersion() -
isSetFormatVersion
public boolean isSetFormatVersion()Returns true if field format_version is set (has been assigned a value) and false otherwise -
setFormatVersionIsSet
public void setFormatVersionIsSet(boolean value) -
getData
-
setData
-
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) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._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<MachineEvent,MachineEvent._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<MachineEvent>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<MachineEvent,MachineEvent._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
-