Skip to content

Commit

Permalink
Remove unused code from StorageStatement/StoreStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegrohmann committed Jan 4, 2017
1 parent 73a533d commit d40c13b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 41 deletions.
Expand Up @@ -141,23 +141,11 @@ public Cursor<RelationshipItem> acquireSingleRelationshipCursor( long relId )
return singleRelationshipCursor.get().init( relId );
}

@Override
public Cursor<RelationshipItem> acquireIteratorRelationshipCursor( PrimitiveLongIterator iterator )
{
neoStores.assertOpen();
return iteratorRelationshipCursor.get().init( iterator );
}

@Override
public Cursor<NodeItem> nodesGetAllCursor()
{
return acquireIteratorNodeCursor( new AllIdIterator( nodeStore ) );
}

@Override
public Cursor<RelationshipItem> relationshipsGetAllCursor()
{
return acquireIteratorRelationshipCursor( new AllIdIterator( relationshipStore ) );
neoStores.assertOpen();
return iteratorRelationshipCursor.get().init( new AllIdIterator( relationshipStore ) );
}

@Override
Expand Down
Expand Up @@ -94,33 +94,13 @@ public interface StorageStatement extends AutoCloseable
Cursor<RelationshipItem> 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<RelationshipItem> 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<NodeItem> 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<RelationshipItem> relationshipsGetAllCursor();

/**
Expand Down

0 comments on commit d40c13b

Please sign in to comment.