@Test public void onCreateEdgeCallTheIndexHandler() { UUID timId = UUID.randomUUID(); Edge edge = edgeWithId(timId); instance.onCreateEdge(NULL_COLLECTION, edge); verify(indexHandler).upsertIntoEdgeIdIndex(timId, edge); }
@Override public void onCreateEdge(Collection collection, Edge edge) { indexHandler.upsertIntoEdgeIdIndex(UUID.fromString(edge.value("tim_id")), edge); }
IdIndexChangeListener implements ChangeListener { @Override public void onCreateEdge(Collection collection, Edge edge) { indexHandler.upsertIntoEdgeIdIndex(UUID.fromString(edge.value("tim_id")), edge); } }
IdIndexChangeListener implements ChangeListener { @Override public void onCreateEdge(Collection collection, Edge edge) { indexHandler.upsertIntoEdgeIdIndex(UUID.fromString(edge.value("tim_id")), edge); } IdIndexChangeListener(IndexHandler indexHandler); }
IdIndexChangeListener implements ChangeListener { @Override public void onCreateEdge(Collection collection, Edge edge) { indexHandler.upsertIntoEdgeIdIndex(UUID.fromString(edge.value("tim_id")), edge); } IdIndexChangeListener(IndexHandler indexHandler); @Override void onCreate(Collection collection, Vertex vertex); @Override void onPropertyUpdate(Collection collection, Optional<Vertex> oldVertex, Vertex newVertex); @Override void onRemoveFromCollection(Collection collection, Optional<Vertex> oldVertex, Vertex newVertex); @Override void onAddToCollection(Collection collection, Optional<Vertex> oldVertex, Vertex newVertex); @Override void onCreateEdge(Collection collection, Edge edge); @Override void onEdgeUpdate(Collection collection, Edge oldEdge, Edge newEdge); }
IdIndexChangeListener implements ChangeListener { @Override public void onCreateEdge(Collection collection, Edge edge) { indexHandler.upsertIntoEdgeIdIndex(UUID.fromString(edge.value("tim_id")), edge); } IdIndexChangeListener(IndexHandler indexHandler); @Override void onCreate(Collection collection, Vertex vertex); @Override void onPropertyUpdate(Collection collection, Optional<Vertex> oldVertex, Vertex newVertex); @Override void onRemoveFromCollection(Collection collection, Optional<Vertex> oldVertex, Vertex newVertex); @Override void onAddToCollection(Collection collection, Optional<Vertex> oldVertex, Vertex newVertex); @Override void onCreateEdge(Collection collection, Edge edge); @Override void onEdgeUpdate(Collection collection, Edge oldEdge, Edge newEdge);  }