presto-main/src/main/java/io/prestosql/operator/index/FieldSetFilteringRecordSet.java/FieldSetFilteringRecordSet/fieldsEquals
class FieldSetFilteringRecordSet:        private static boolean fieldsEquals(RecordCursor cursor, Set<Field> fields)
        {
            if (fields.size() < 2) {
                return true; // Nothing to compare
            }
            Iterator<Field> fieldIterator = fields.iterator();
            Field firstField = fieldIterator.next();
            while (fieldIterator.hasNext()) {
                if (!fieldEquals(cursor, firstField, fieldIterator.next())) {
                    return false;
                }
            }
            return true;
        }