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