@Test public void hasQuickSearchForReturnsFalseIfTheIndexDoesNotExist() { TinkerPopGraphManager tinkerPopGraphManager = newGraph().wrap(); Neo4jIndexHandler instance = new Neo4jIndexHandler(tinkerPopGraphManager); Collection collectionWithoutIndex = mock(Collection.class); when(collectionWithoutIndex.getCollectionName()).thenReturn(COLLECTION); boolean existingIndex = instance.hasQuickSearchIndexFor(collectionWithoutIndex); assertThat(existingIndex, is(false)); }
@Override public boolean hasQuickSearchIndexFor(Collection collection) { return indexManager().existsForNodes(getQuicksearchIndexName(collection)); }
Neo4jIndexHandler implements IndexHandler { @Override public boolean hasQuickSearchIndexFor(Collection collection) { return indexManager().existsForNodes(getQuicksearchIndexName(collection)); } }
Neo4jIndexHandler implements IndexHandler { @Override public boolean hasQuickSearchIndexFor(Collection collection) { return indexManager().existsForNodes(getQuicksearchIndexName(collection)); } Neo4jIndexHandler(TinkerPopGraphManager tinkerPopGraphManager); }
Neo4jIndexHandler implements IndexHandler { @Override public boolean hasQuickSearchIndexFor(Collection collection) { return indexManager().existsForNodes(getQuicksearchIndexName(collection)); } Neo4jIndexHandler(TinkerPopGraphManager tinkerPopGraphManager); @Override boolean hasQuickSearchIndexFor(Collection collection); @Override GraphTraversal<Vertex, Vertex> findByQuickSearch(Collection collection, QuickSearch quickSearch); @Override GraphTraversal<Vertex, Vertex> findKeywordsByQuickSearch(Collection collection, QuickSearch quickSearch,
                                                                  String keywordType); @Override void removeFromQuickSearchIndex(Collection collection, Vertex vertex); @Override void upsertIntoQuickSearchIndex(Collection collection, String quickSearchValue, Vertex vertex,
                                         Vertex oldVertex); @Override void deleteQuickSearchIndex(Collection collection); @Override Optional<Vertex> findById(UUID timId); @Override @Deprecated void insertIntoIdIndex(UUID timId, Vertex vertex); @Override void upsertIntoIdIndex(UUID timId, Vertex vertex); @Override void removeFromIdIndex(Vertex vertex); @Override Optional<Edge> findEdgeById(UUID edgeId); @Override void upsertIntoEdgeIdIndex(UUID edgeId, Edge edge); @Override void removeEdgeFromIdIndex(Edge edge); }
Neo4jIndexHandler implements IndexHandler { @Override public boolean hasQuickSearchIndexFor(Collection collection) { return indexManager().existsForNodes(getQuicksearchIndexName(collection)); } Neo4jIndexHandler(TinkerPopGraphManager tinkerPopGraphManager); @Override boolean hasQuickSearchIndexFor(Collection collection); @Override GraphTraversal<Vertex, Vertex> findByQuickSearch(Collection collection, QuickSearch quickSearch); @Override GraphTraversal<Vertex, Vertex> findKeywordsByQuickSearch(Collection collection, QuickSearch quickSearch,
                                                                  String keywordType); @Override void removeFromQuickSearchIndex(Collection collection, Vertex vertex); @Override void upsertIntoQuickSearchIndex(Collection collection, String quickSearchValue, Vertex vertex,
                                         Vertex oldVertex); @Override void deleteQuickSearchIndex(Collection collection); @Override Optional<Vertex> findById(UUID timId); @Override @Deprecated void insertIntoIdIndex(UUID timId, Vertex vertex); @Override void upsertIntoIdIndex(UUID timId, Vertex vertex); @Override void removeFromIdIndex(Vertex vertex); @Override Optional<Edge> findEdgeById(UUID edgeId); @Override void upsertIntoEdgeIdIndex(UUID edgeId, Edge edge); @Override void removeEdgeFromIdIndex(Edge edge);  }