datasetIterator = dataset.listIterator();
DataLoader dataLoader = new DataLoader(clusterName, host + ":" + port);
while (datasetIterator.hasNext()) {
String next = datasetIterator.next();
boolean dropAndCreateKeyspace = datasetIterator.previousIndex() == 0;
dataLoader.load(new ClassPathDataSet(next), dropAndCreateKeyspace);
}
}
}
}