presto-hive/src/main/java/io/prestosql/plugin/hive/util/FooterAwareRecordReader.java/FooterAwareRecordReader/FooterAwareRecordReader
class FooterAwareRecordReader:    public FooterAwareRecordReader(RecordReader<K, V> delegate, int footerCount, JobConf job)
            throws IOException
    {
        this.delegate = requireNonNull(delegate, "delegate is null");
        this.job = requireNonNull(job, "job is null");

        checkArgument(footerCount > 0, "footerCount is expected to be positive");

        footerBuffer.initializeBuffer(job, delegate, footerCount, delegate.createKey(), delegate.createValue());
    }