presto-main/src/main/java/io/prestosql/operator/index/IndexSourceOperator.java/IndexSourceOperator/isFinished
class IndexSourceOperator:    @Override
    public boolean isFinished()
    {
        return (source != null) && source.isFinished();
    }