package ingraph.bulkloader.csv.entityprocessor;

import ingraph.bulkloader.csv.columnname.ColumnConstants;
import org.neo4j.driver.v1.Value;
import org.neo4j.driver.v1.Values;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class PropertyExtractor {

	public static Map<String, Value> extractProperties(final Map<String, Object> row) {
		final Map<String, Value> properties = new HashMap<>();
		for (Entry<String, Object> entry : row.entrySet()) {
			if (ColumnConstants.isInternal(entry.getKey())) {
				continue;
			} else {
				properties.put(entry.getKey(), Values.value(entry.getValue()));
			}
		}
		return properties;
	}

}

@@ -539,17 +539,125 @@
 %09%09%09%09
-continue;
+if (entry.getKey() == ColumnConstants.INTERNAL_ID) %7B%0A%09%09%09%09%09properties.put(%22id%22, Values.value(entry.getValue()));%0A%09%09%09%09%7D
 %0A%09%09%09

Add index to vertices. Addresses #314