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