All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clearspring.analytics.util.UnsignedIntComparator Maven / Gradle / Ivy

There is a newer version: 4.15.0-HBase-1.5
Show newest version
package com.clearspring.analytics.util;


import java.util.Comparator;

public class UnsignedIntComparator implements Comparator {

    @Override
    public int compare(byte[] left, byte[] right) {
        int l = Varint.readUnsignedVarInt(left);
        int r = Varint.readUnsignedVarInt(right);
        return l - r;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy