presto-hive/src/main/java/io/prestosql/plugin/hive/s3select/PrestoS3SelectClient.java/PrestoS3SelectClient/getRecordsContent
class PrestoS3SelectClient:    public InputStream getRecordsContent(SelectObjectContentRequest selectObjectRequest)
    {
        this.selectObjectRequest = requireNonNull(selectObjectRequest, "selectObjectRequest is null");
        this.selectObjectContentResult = s3Client.selectObjectContent(selectObjectRequest);
        return selectObjectContentResult.getPayload()
                .getRecordsInputStream(
                        new SelectObjectContentEventVisitor()
                        {
                            @Override
                            public void visit(EndEvent endEvent)
                            {
                                requestComplete = true;
                            }
                        });
    }