presto-main/src/main/java/io/prestosql/sql/planner/SystemPartitioningHandle.java/SystemPartitioningHandle/isSingleNode
class SystemPartitioningHandle:    @Override
    public boolean isSingleNode()
    {
        return partitioning == SystemPartitioning.COORDINATOR_ONLY || partitioning == SystemPartitioning.SINGLE;
    }