presto-spi/src/main/java/io/prestosql/spi/block/SingleMapBlockWriter.java/SingleMapBlockWriter/entryAdded
class SingleMapBlockWriter:    private void entryAdded()
    {
        writeToValueNext = !writeToValueNext;
        positionsWritten++;
    }