Package cern.nxcals.api.domain
Class RecordKey
- java.lang.Object
-
- cern.nxcals.api.domain.RecordKey
-
public final class RecordKey extends java.lang.ObjectThis class represents the Kafka record key for ingested data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecordKey.RecordKeyBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordKey.RecordKeyBuilderbuilder()static RecordKeydeserialize(byte[] array)booleanequals(java.lang.Object o)longgetEntityId()longgetPartitionId()longgetSchemaId()longgetSystemId()longgetTimestamp()inthashCode()static booleanisValid(byte[] array)byte[]serialize()static byte[]serialize(long systemId, long partitionId, long schemaId, long entityId, long timestamp)java.lang.StringtoString()
-
-
-
Method Detail
-
serialize
public byte[] serialize()
-
serialize
public static byte[] serialize(long systemId, long partitionId, long schemaId, long entityId, long timestamp)
-
deserialize
public static RecordKey deserialize(byte[] array)
-
isValid
public static boolean isValid(byte[] array)
-
builder
public static RecordKey.RecordKeyBuilder builder()
-
getSystemId
public long getSystemId()
-
getPartitionId
public long getPartitionId()
-
getSchemaId
public long getSchemaId()
-
getEntityId
public long getEntityId()
-
getTimestamp
public long getTimestamp()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-