コード例 #1
0
 public virtual void Accept(DefaultRelationshipScanCursor cursor)
 {
     if (_relationshipScanCursor != null)
     {
         _relationshipScanCursor.release();
     }
     _relationshipScanCursor = cursor;
 }
コード例 #2
0
 public virtual void Release()
 {
     if (_nodeCursor != null)
     {
         _nodeCursor.release();
         _nodeCursor = null;
     }
     if (_relationshipScanCursor != null)
     {
         _relationshipScanCursor.release();
         _relationshipScanCursor = null;
     }
     if (_relationshipTraversalCursor != null)
     {
         _relationshipTraversalCursor.release();
         _relationshipTraversalCursor = null;
     }
     if (_propertyCursor != null)
     {
         _propertyCursor.release();
         _propertyCursor = null;
     }
     if (_relationshipGroupCursor != null)
     {
         _relationshipGroupCursor.release();
         _relationshipGroupCursor = null;
     }
     if (_nodeValueIndexCursor != null)
     {
         _nodeValueIndexCursor.release();
         _nodeValueIndexCursor = null;
     }
     if (_nodeLabelIndexCursor != null)
     {
         _nodeLabelIndexCursor.release();
         _nodeLabelIndexCursor = null;
     }
     if (_nodeExplicitIndexCursor != null)
     {
         _nodeExplicitIndexCursor.release();
         _nodeExplicitIndexCursor = null;
     }
     if (_relationshipExplicitIndexCursor != null)
     {
         _relationshipExplicitIndexCursor.release();
         _relationshipExplicitIndexCursor = null;
     }
 }
コード例 #3
0
        public override DefaultRelationshipScanCursor AllocateRelationshipScanCursor()
        {
            if (_relationshipScanCursor == null)
            {
                return(Trace(new DefaultRelationshipScanCursor(this, _storageReader.allocateRelationshipScanCursor())));
            }

            try
            {
                return(_relationshipScanCursor);
            }
            finally
            {
                _relationshipScanCursor = null;
            }
        }
コード例 #4
0
 internal DefaultRelationshipExplicitIndexCursor(DefaultRelationshipScanCursor scanCursor, DefaultCursors pool)
 {
     this._scanCursor = scanCursor;
     this._pool       = pool;
 }