Package cern.nxcals.api.domain
Class RecordKey
java.lang.Object
cern.nxcals.api.domain.RecordKey
This class represents the Kafka record key for ingested data.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordKey.RecordKeyBuilderbuilder()static RecordKeydeserialize(byte[] array) booleanlonglonglonglonglonginthashCode()static booleanisValid(byte[] array) byte[]static byte[]serialize(long systemId, long partitionId, long schemaId, long entityId, long timestamp) toString()
-
Method Details
-
serialize
public byte[] serialize() -
serialize
public static byte[] serialize(long systemId, long partitionId, long schemaId, long entityId, long timestamp) -
deserialize
-
isValid
public static boolean isValid(byte[] array) -
builder
-
getSystemId
public long getSystemId() -
getPartitionId
public long getPartitionId() -
getSchemaId
public long getSchemaId() -
getEntityId
public long getEntityId() -
getTimestamp
public long getTimestamp() -
equals
-
hashCode
public int hashCode() -
toString
-