AbstractDatasetWriter<E> writer = new FileSystemWriter<E>(
dataset.getFileSystem(),
new Path(dataset.getDirectory(), partition),
dataset.getDescriptor());
PartitionListener listener = dataset.getPartitionListener();
if (listener != null) {
listener.partitionAdded(
dataset.getNamespace(), dataset.getName(), partition.toString());
}
writer.initialize();