Interface ImmutableRecordBatchEntry
- All Known Implementing Classes:
RecordBatchEntry
public interface ImmutableRecordBatchEntry
Represents an unmodifiable entry of an
ImmutableRecordBatch. Contains data about a record
which has been created by an RecordProcessor.-
Method Summary
-
Method Details
-
key
long key()- Returns:
- the key of the record
-
sourceIndex
int sourceIndex()- Returns:
- points to a command which is part of the same batch, which caused that entry
-
recordMetadata
RecordMetadata recordMetadata()- Returns:
- meta data of the record, like ValueType, Intent, RecordType etc.
-
recordValue
UnifiedRecordValue recordValue()- Returns:
- the actual record value, this method returns a general type but can be casted to the right record value class if necessary
-
getLength
int getLength()- Returns:
- the length of the record entry, important for the batch to determine whether it reached its maximum size
-