presto-thrift/src/main/java/io/prestosql/plugin/thrift/ThriftPageSource.java/ThriftPageSource/isFinished
class ThriftPageSource:    @Override
    public boolean isFinished()
    {
        return !firstCall && !canGetMoreData(nextToken);
    }