You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<name>A temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository.</name>
this.getReport().log(String.format("Property %s on node %s has been skipped due to bad type", key, draft.getId()));
363
+
this.getReport().log(String.format("Property %s on %s %s has been skipped due to bad type", key, draftinstanceofNodeDraft ? "node" : "edge", draft.getId()));
430
364
}
431
365
});
432
366
}
433
367
368
+
privateObjectneo4jValueToGephi(Valuevalue) {
369
+
Objectresult = null;
370
+
System.out.println(value);
371
+
System.out.println(value.type().name());
372
+
switch (value.type().name()) {
373
+
case"ANY":
374
+
thrownewNotImplementedException("Any value is not implemented");
375
+
case"BOOLEAN":
376
+
result = value.asBoolean();
377
+
break;
378
+
case"BYTES":
379
+
thrownewNotImplementedException("Bytes value is not implemented");
380
+
case"DATE_TIME":
381
+
thrownewNotImplementedException("DateTime value is not implemented");
382
+
case"DATE":
383
+
thrownewNotImplementedException("Date value is not implemented");
384
+
case"DURATION":
385
+
thrownewNotImplementedException("Duration value is not implemented");
386
+
case"FLOAT":
387
+
result = value.asFloat();
388
+
break;
389
+
case"INTEGER":
390
+
result = value.asInt();
391
+
break;
392
+
case"LIST":
393
+
case"LIST OF ANY?":
394
+
if(value.asList().size() > 0) {
395
+
result = toArray(value.asList(this::neo4jValueToGephi));
396
+
}
397
+
398
+
break;
399
+
case"LOCAL_DATE_TIME":
400
+
thrownewNotImplementedException("LocalDateTime value is not implemented");
401
+
case"LOCAL_TIME":
402
+
thrownewNotImplementedException("LocalTime value is not implemented");
403
+
case"MAP":
404
+
thrownewNotImplementedException("Map value is not implemented");
405
+
case"NODE":
406
+
thrownewNotImplementedException("Node value is not implemented");
407
+
case"NULL":
408
+
result = null;
409
+
break;
410
+
case"NUMBER":
411
+
result = value.asNumber();
412
+
break;
413
+
case"ObjectValueAdapter":
414
+
thrownewNotImplementedException("Object value is not implemented");
415
+
case"PATH":
416
+
thrownewNotImplementedException("Path value is not implemented");
417
+
case"POINT":
418
+
thrownewNotImplementedException("Point value is not implemented");
419
+
case"RELATIONSHIP":
420
+
thrownewNotImplementedException("Relationship value is not implemented");
421
+
case"STRING":
422
+
result = value.asString();
423
+
break;
424
+
case"TIME":
425
+
thrownewNotImplementedException("Time value is not implemented");
426
+
}
427
+
returnresult;
428
+
}
429
+
430
+
public <T> T[] toArray(List<T> list) {
431
+
Classclazz = list.get(0).getClass(); // check for size and null before
0 commit comments