forked from antonis.lempesis/dnet-hadoop
removed not used code
This commit is contained in:
parent
12407c1f32
commit
fc2f7636be
|
@ -96,24 +96,12 @@ public class PrepareProjects {
|
||||||
|
|
||||||
String[] programme = csvProject.get().getProgramme().split(";");
|
String[] programme = csvProject.get().getProgramme().split(";");
|
||||||
String topic = csvProject.get().getTopics();
|
String topic = csvProject.get().getTopics();
|
||||||
// String topicdescription = Optional
|
|
||||||
// .ofNullable(csvProject.get().getTopics())
|
|
||||||
// .map(topics -> {
|
|
||||||
// if (topic.equalsIgnoreCase(value._1().getTopiccode())) {
|
|
||||||
// return value._1().getTopicdescription();
|
|
||||||
// }
|
|
||||||
// return null;
|
|
||||||
// })
|
|
||||||
// .orElse(null);
|
|
||||||
|
|
||||||
Arrays
|
Arrays
|
||||||
.stream(programme)
|
.stream(programme)
|
||||||
.forEach(p -> {
|
.forEach(p -> {
|
||||||
CSVProject proj = new CSVProject();
|
CSVProject proj = new CSVProject();
|
||||||
proj.setTopics(topic);
|
proj.setTopics(topic);
|
||||||
// if (topicdescription != null) {
|
|
||||||
// proj.setTopicdescription(topicdescription);
|
|
||||||
// }
|
|
||||||
|
|
||||||
proj.setProgramme(p);
|
proj.setProgramme(p);
|
||||||
proj.setId(csvProject.get().getId());
|
proj.setId(csvProject.get().getId());
|
||||||
|
|
Loading…
Reference in New Issue