@Override
    public void process(boolean validate, boolean documentsOnly) {
        if ( ! validate) return;

        String invalidAttributes = schema.allFields()
                                         .flatMap(field -> field.getAttributes().values().stream())
                                         .filter(FastAccessValidator::isIncompatibleAttribute)
                                         .map(Attribute::getName)
                                         .collect(Collectors.joining(", "));
        if ( ! invalidAttributes.isEmpty()) {
            throw new IllegalArgumentException(
                            "For " + schema + ": The following attributes have a type that is incompatible with fast-access: " +
                            invalidAttributes + ". Predicate, tensor and reference attributes are incompatible with fast-access.");
        }
    }
Validates the use of the fast-access property.

@author bjorncs
config-model/src/main/java/com/yahoo/schema/processing/FastAccessValidator.java