Class Key

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public final class Key
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    LevelDB key.
    See Also:
    Serialized Form
    • Constructor Detail

      • Key

        public Key​(int persistenceId,
                   long sequenceNr,
                   int mappingId)
    • Method Detail

      • keyToBytes

        public static byte[] keyToBytes​(Key key)
      • keyFromBytes

        public static Key keyFromBytes​(byte[] bytes)
      • counterKey

        public static Key counterKey​(int persistenceId)
      • counterToBytes

        public static byte[] counterToBytes​(long ctr)
      • counterFromBytes

        public static long counterFromBytes​(byte[] bytes)
      • mappingKey

        public static Key mappingKey​(int id)
      • isMappingKey

        public static boolean isMappingKey​(Key key)
      • deletionKey

        public static Key deletionKey​(int persistenceId,
                                      long sequenceNr)
      • isDeletionKey

        public static boolean isDeletionKey​(Key key)
      • apply

        public static Key apply​(int persistenceId,
                                long sequenceNr,
                                int mappingId)
      • unapply

        public static scala.Option<scala.Tuple3<java.lang.Object,​java.lang.Object,​java.lang.Object>> unapply​(Key x$0)
      • persistenceId

        public int persistenceId()
      • sequenceNr

        public long sequenceNr()
      • mappingId

        public int mappingId()
      • copy

        public Key copy​(int persistenceId,
                        long sequenceNr,
                        int mappingId)
      • copy$default$1

        public int copy$default$1()
      • copy$default$2

        public long copy$default$2()
      • copy$default$3

        public int copy$default$3()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object