}
}, tableOf(writables(KeyValue.class), nulls()));
List <KeyValue> splitPoints = getSplitPoints(table);
Path partitionFile = new Path(((DistributedPipeline) kvs.getPipeline()).createTempPath(), "partition");
writePartitionInfo(conf, partitionFile, splitPoints);
GroupingOptions options = GroupingOptions.builder()
.partitionerClass(TotalOrderPartitioner.class)
.conf(TotalOrderPartitioner.PARTITIONER_PATH, partitionFile.toString())
.numReducers(splitPoints.size() + 1)
.sortComparatorClass(KeyValueComparator.class)
.build();