code: public static <E> PCollection<E> partition(PCollection<E> collection,
                                               Dataset<E> dataset) {
      return partition(collection, dataset, -1);
    }
docs: Partitions {@code collection} to be stored efficiently in {@code dataset}.
  <p>
  This restructures the parallel collection so that all of the entities that
  will be stored in a given partition will be processed by the same writer.
  
  @param collection a collection of entities
  @param dataset a dataset to partition the collection for
  @param <E> the type of entities in the collection and underlying dataset
  @return an equivalent collection of entities partitioned for the view
  
  @since 0.16.0