presto-main/src/main/java/io/prestosql/operator/window/PercentRankFunction.java/PercentRankFunction/reset
class PercentRankFunction:    @Override
    public void reset()
    {
        totalCount = windowIndex.size();
        rank = 0;
        count = 1;
    }