code: public void setToBeginningWithNoEnd(final int numPartitions) {
      if (numPartitions > MAX_PARTITIONS) {
        throw new IllegalArgumentException("Can only hold " + MAX_PARTITIONS + " partitions, " + numPartitions
            + "supplied as initializer.");
      }
  
      for (int i = 0; i < numPartitions; i++) {
        PartitionState partitionState = new PartitionState();
        partitionState.setEndSeqno(NO_END_SEQNO);
        partitionState.setStartSeqno(0);
        partitionState.setSnapshotStartSeqno(0);
        partitionState.setSnapshotEndSeqno(0);
        partitionStates.set(i, partitionState);
      }
    }
docs: Initializes all partition states to start at the beginning (0) with no end.
  
  @param numPartitions the actual number of partitions used.