presto-rcfile/src/main/java/io/prestosql/rcfile/RcFileWriter.java/RcFileWriter/validate
class RcFileWriter:    public void validate(RcFileDataSource input)
            throws RcFileCorruptionException
    {
        checkState(validationBuilder != null, "validation is not enabled");
        validateFile(
                validationBuilder.build(),
                input,
                encoding,
                types,
                codecFactory);
    }