presto-main/src/main/java/io/prestosql/operator/window/LeadFunction.java/LeadFunction/withinPartition
class LeadFunction:    private boolean withinPartition(long valuePosition)
    {
        return valuePosition >= 0 && valuePosition < windowIndex.size();
    }