@Override public boolean nodeExists( long nodeId ) { return delegate.nodeExists( nodeId ); }
@Override public boolean nodeExists( long nodeId ) { return delegate.nodeExists( nodeId ); }
private static long firstNode(BatchInserter sourceDb, long highestNodeId) { long node = -1; while (++node <= highestNodeId) { if (sourceDb.nodeExists(node) && !sourceDb.getNodeProperties(node).isEmpty()) return node; } return -1; }
public Vertex getVertex(final Object id) { if (null == id) throw ExceptionFactory.vertexIdCanNotBeNull(); try { final Long longId; if (id instanceof Long) longId = (Long) id; else longId = Double.valueOf(id.toString()).longValue(); if (rawGraph.nodeExists(longId)) { return new Neo4jBatchVertex(this, longId); } else { return null; } } catch (NumberFormatException e) { return null; } }
public Vertex getVertex(final Object id) { if (null == id) throw ExceptionFactory.vertexIdCanNotBeNull(); try { final Long longId; if (id instanceof Long) longId = (Long) id; else longId = Double.valueOf(id.toString()).longValue(); if (rawGraph.nodeExists(longId)) { return new Neo4j2BatchVertex(this, longId); } else { return null; } } catch (NumberFormatException e) { return null; } }
while (node <= highestNodeId) { try { if (sourceDb.nodeExists(node)) { if (labelInSet(sourceDb.getNodeLabels(node),deleteNodesWithLabels)) { removed ++;