Class Record


  • public final class Record
    extends java.lang.Object
    A record is pair of key and value. It may be all key, in which case value is null.
    • Field Detail

      • NO_REC

        public static final Record NO_REC
    • Constructor Detail

      • Record

        public Record​(byte[] key,
                      byte[] value)
    • Method Detail

      • getKey

        public byte[] getKey()
      • getValue

        public byte[] getValue()
      • hasSeparateValue

        public boolean hasSeparateValue()
      • hashCode

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public static boolean keyEQ​(Record record1,
                                    Record record2)
        Is the key of record1 == key of record2
      • keyNE

        public static boolean keyNE​(Record record1,
                                    Record record2)
        Is the key of record1 != key of record2
      • keyLT

        public static boolean keyLT​(Record record1,
                                    Record record2)
        Is the key of record1 < key of record2
      • keyLE

        public static boolean keyLE​(Record record1,
                                    Record record2)
        Is the key of record1 <= key of record2
      • keyGE

        public static boolean keyGE​(Record record1,
                                    Record record2)
        Is the key of record1 >= key of record2
      • keyGT

        public static boolean keyGT​(Record record1,
                                    Record record2)
        Is the key of record1 > key of record2
      • equals

        public static boolean equals​(Record record1,
                                     Record record2)
        Is (key, value) of record1 equal to (key,value) of record2
      • str

        public static java.lang.String str​(byte[] b)
      • compareByKey

        public static int compareByKey​(Record record1,
                                       Record record2)
      • compareByKeyValue

        public static int compareByKeyValue​(Record record1,
                                            Record record2)