Record Class RecordBatchEntry
java.lang.Object
java.lang.Record
io.camunda.zeebe.stream.impl.records.RecordBatchEntry
- All Implemented Interfaces:
LogAppendEntry
public record RecordBatchEntry(RecordMetadata recordMetadata, long key, int sourceIndex, UnifiedRecordValue unifiedRecordValue)
extends Record
implements LogAppendEntry
-
Constructor Summary
ConstructorsConstructorDescriptionRecordBatchEntry(RecordMetadata recordMetadata, long key, int sourceIndex, UnifiedRecordValue unifiedRecordValue) Creates an instance of aRecordBatchEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordBatchEntrycreateEntry(long key, int sourceIndex, RecordType recordType, Intent intent, RejectionType rejectionType, String rejectionReason, ValueType valueType, BufferWriter valueWriter) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longkey()Returns the value of thekeyrecord component.Returns the value of therecordMetadatarecord component.intReturns the value of thesourceIndexrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunifiedRecordValuerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.logstreams.log.LogAppendEntry
getLength, isProcessed
-
Constructor Details
-
RecordBatchEntry
public RecordBatchEntry(RecordMetadata recordMetadata, long key, int sourceIndex, UnifiedRecordValue unifiedRecordValue) Creates an instance of aRecordBatchEntryrecord class.- Parameters:
recordMetadata- the value for therecordMetadatarecord componentkey- the value for thekeyrecord componentsourceIndex- the value for thesourceIndexrecord componentunifiedRecordValue- the value for theunifiedRecordValuerecord component
-
-
Method Details
-
recordValue
- Specified by:
recordValuein interfaceLogAppendEntry
-
createEntry
public static RecordBatchEntry createEntry(long key, int sourceIndex, RecordType recordType, Intent intent, RejectionType rejectionType, String rejectionReason, ValueType valueType, BufferWriter valueWriter) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
recordMetadata
Returns the value of therecordMetadatarecord component.- Specified by:
recordMetadatain interfaceLogAppendEntry- Returns:
- the value of the
recordMetadatarecord component
-
key
public long key()Returns the value of thekeyrecord component.- Specified by:
keyin interfaceLogAppendEntry- Returns:
- the value of the
keyrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Specified by:
sourceIndexin interfaceLogAppendEntry- Returns:
- the value of the
sourceIndexrecord component
-
unifiedRecordValue
Returns the value of theunifiedRecordValuerecord component.- Returns:
- the value of the
unifiedRecordValuerecord component
-