diff --git a/community/kernel/src/main/java/org/neo4j/kernel/impl/api/store/StoreStatement.java b/community/kernel/src/main/java/org/neo4j/kernel/impl/api/store/StoreStatement.java index b9c47d4e7b055..40f4de73a7ef6 100644 --- a/community/kernel/src/main/java/org/neo4j/kernel/impl/api/store/StoreStatement.java +++ b/community/kernel/src/main/java/org/neo4j/kernel/impl/api/store/StoreStatement.java @@ -141,23 +141,11 @@ public Cursor acquireSingleRelationshipCursor( long relId ) return singleRelationshipCursor.get().init( relId ); } - @Override - public Cursor acquireIteratorRelationshipCursor( PrimitiveLongIterator iterator ) - { - neoStores.assertOpen(); - return iteratorRelationshipCursor.get().init( iterator ); - } - - @Override - public Cursor nodesGetAllCursor() - { - return acquireIteratorNodeCursor( new AllIdIterator( nodeStore ) ); - } - @Override public Cursor relationshipsGetAllCursor() { - return acquireIteratorRelationshipCursor( new AllIdIterator( relationshipStore ) ); + neoStores.assertOpen(); + return iteratorRelationshipCursor.get().init( new AllIdIterator( relationshipStore ) ); } @Override diff --git a/community/kernel/src/main/java/org/neo4j/storageengine/api/StorageStatement.java b/community/kernel/src/main/java/org/neo4j/storageengine/api/StorageStatement.java index 555290b0664c8..4c18faf96e730 100644 --- a/community/kernel/src/main/java/org/neo4j/storageengine/api/StorageStatement.java +++ b/community/kernel/src/main/java/org/neo4j/storageengine/api/StorageStatement.java @@ -94,33 +94,13 @@ public interface StorageStatement extends AutoCloseable Cursor acquireSingleRelationshipCursor( long relationshipId ); /** - * Acquires {@link Cursor} capable of {@link Cursor#get() serving} {@link RelationshipItem} for selected - * relationships. No relationship is selected when this method returns, a call to {@link Cursor#next()} - * will have to be made to place the cursor over the first item and then more calls to move the cursor - * through the selection. - * - * @param relationshipIds ids of relationships to get cursor for. - * @return a {@link Cursor} over {@link RelationshipItem} for the given relationship ids. - */ - Cursor acquireIteratorRelationshipCursor( PrimitiveLongIterator relationshipIds ); - - /** - * Acquires {@link Cursor} capable of {@link Cursor#get() serving} {@link NodeItem} for selected nodes. - * No node is selected when this method returns, a call to {@link Cursor#next()} will have to be made - * to place the cursor over the first item and then more calls to move the cursor through the selection. - * - * @return {@link Cursor} over all stored nodes. - */ - Cursor nodesGetAllCursor(); - - /** - * Acquires {@link Cursor} capable of {@link Cursor#get() serving} {@link RelationshipItem} for selected - * relationships. No relationship is selected when this method returns, a call to {@link Cursor#next()} - * will have to be made to place the cursor over the first item and then more calls to move the cursor - * through the selection. - * - * @return a {@link Cursor} over all stored relationships. - */ + - * Acquires {@link Cursor} capable of {@link Cursor#get() serving} {@link RelationshipItem} for selected + - * relationships. No relationship is selected when this method returns, a call to {@link Cursor#next()} + - * will have to be made to place the cursor over the first item and then more calls to move the cursor + - * through the selection. + - * + - * @return a {@link Cursor} over all stored relationships. + - */ Cursor relationshipsGetAllCursor(); /**