presto-main/src/main/java/io/prestosql/sql/planner/optimizations/StreamPreferredProperties.java/StreamPreferredProperties/isSingleStreamPreferred
class StreamPreferredProperties:    public boolean isSingleStreamPreferred()
    {
        return distribution.isPresent() && distribution.get() == SINGLE;
    }