Class RecordKey

java.lang.Object
cern.nxcals.api.domain.RecordKey

public final class RecordKey extends Object
This class represents the Kafka record key for ingested data.
  • Method Details

    • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object