presto-main/src/main/java/io/prestosql/operator/index/PagesIndexBuilderOperator.java/PagesIndexBuilderOperator/addInput
class PagesIndexBuilderOperator:    @Override
    public void addInput(Page page)
    {
        requireNonNull(page, "page is null");
        checkState(!isFinished(), "Operator is already finished");

        if (!indexSnapshotBuilder.tryAddPage(page)) {
            finish();
            return;
        }
        operatorContext.recordOutput(page.getSizeInBytes(), page.getPositionCount());
    }