* @param initialCapacity
* @param segmentFactory The segment factory, defaults to {@link krati.core.segment.ChannelSegmentFactory}.
* @return
*/
public static DataSet createDataSet(String path, int initialCapacity, SegmentFactory segmentFactory) {
DataSet result = null;
File homeDir = new File(path);
homeDir.mkdirs();
try {
result = new DynamicDataSet(homeDir, initialCapacity, segmentFactory);
} catch (Exception e) {