class CreateUidsIterator implements SortedKeyValueIterator<Key,Value>, OptionDescriber {

    public static boolean sameShard(Key ref, Key test) {
        ByteSequence refCq = ref.getColumnQualifierData();
        ByteSequence testCq = test.getColumnQualifierData();
        if (testCq.length() < refCq.length()) {
            return false;
        }
        for (int i = 0; i < refCq.length(); ++i) {
            if (refCq.byteAt(i) != testCq.byteAt(i)) {
                return false;
            }
        }
        
        return testCq.byteAt(refCq.length()) == 0x00;
    }

}