/**
  * Constructor.
  *
  * @param conf Configuration
  */
 public DiskBackedPartitionStore(ImmutableClassesGiraphConfiguration<I, V, E, M> conf) {
   this.conf = conf;
   // We must be able to hold at least one partition in memory
   maxInMemoryPartitions =
       Math.max(
           1,
           conf.getInt(
               GiraphConfiguration.MAX_PARTITIONS_IN_MEMORY,
               GiraphConfiguration.MAX_PARTITIONS_IN_MEMORY_DEFAULT));
   basePath =
       conf.get("mapred.job.id", "Unknown Job")
           + conf.get(
               GiraphConfiguration.PARTITIONS_DIRECTORY,
               GiraphConfiguration.PARTITIONS_DIRECTORY_DEFAULT);
 }