presto-orc/src/main/java/io/prestosql/orc/metadata/statistics/StatisticsHasher.java/StatisticsHasher/putOptionalInt
class StatisticsHasher:    public StatisticsHasher putOptionalInt(boolean present, int value)
    {
        hasher.putBoolean(present);
        hasher.putInt(present ? value : 0);
        return this;
    }