Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 992FD1020F for ; Tue, 13 Aug 2013 15:43:44 +0000 (UTC) Received: (qmail 64209 invoked by uid 500); 13 Aug 2013 15:43:44 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 64173 invoked by uid 500); 13 Aug 2013 15:43:44 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 64166 invoked by uid 99); 13 Aug 2013 15:43:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 15:43:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 15:43:40 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 22D122388CA3 for ; Tue, 13 Aug 2013 15:42:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r874484 [29/45] - in /websites/production/directory/content/mavibot/gen-docs: ./ 1.0.0-M1/ 1.0.0-M1/apidocs/ 1.0.0-M1/apidocs/org/ 1.0.0-M1/apidocs/org/apache/ 1.0.0-M1/apidocs/org/apache/directory/ 1.0.0-M1/apidocs/org/apache/directory/mav... Date: Tue, 13 Aug 2013 15:42:17 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130813154230.22D122388CA3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromLeftResult.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromLeftResult.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromLeftResult.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,95 @@ + + + + +BorrowedFromLeftResult xref + + + +
+
+1   /*
+2    *  Licensed to the Apache Software Foundation (ASF) under one
+3    *  or more contributor license agreements.  See the NOTICE file
+4    *  distributed with this work for additional information
+5    *  regarding copyright ownership.  The ASF licenses this file
+6    *  to you under the Apache License, Version 2.0 (the
+7    *  "License"); you may not use this file except in compliance
+8    *  with the License.  You may obtain a copy of the License at
+9    *
+10   *    http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   *  Unless required by applicable law or agreed to in writing,
+13   *  software distributed under the License is distributed on an
+14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   *  KIND, either express or implied.  See the License for the
+16   *  specific language governing permissions and limitations
+17   *  under the License.
+18   *
+19   */
+20  package org.apache.directory.mavibot.btree;
+21  
+22  
+23  import java.util.List;
+24  
+25  
+26  /**
+27   * The result of a delete operation, when the child has not been merged, and when
+28   * we have borrowed an element from the left sibling. It contains the
+29   * reference to the modified page, and the removed element.
+30   * 
+31   * @param <K> The type for the Key
+32   * @param <V> The type for the stored value
+33  
+34   * @author <a href="mailto:labs@labs.apache.org">Mavibot labs Project</a>
+35   */
+36  /* No qualifier */class BorrowedFromLeftResult<K, V> extends AbstractBorrowedFromSiblingResult<K, V>
+37  {
+38      /**
+39       * The default constructor for BorrowedFromLeftResult.
+40       * 
+41       * @param modifiedPage The modified page
+42       * @param modifiedSibling The modified sibling
+43       * @param removedElement The removed element (can be null if the key wasn't present in the tree)
+44       */
+45      /* No qualifier */BorrowedFromLeftResult( Page<K, V> modifiedPage, Page<K, V> modifiedSibling,
+46          Tuple<K, V> removedElement )
+47      {
+48          super( modifiedPage, modifiedSibling, removedElement, AbstractBorrowedFromSiblingResult.SiblingPosition.LEFT );
+49      }
+50  
+51  
+52      /**
+53       * A constructor for BorrowedFromLeftResult which takes a list of copied pages.
+54       * 
+55       * @param copiedPages the list of copied pages
+56       * @param modifiedPage The modified page
+57       * @param modifiedSibling The modified sibling
+58       * @param removedElement The removed element (can be null if the key wasn't present in the tree)
+59       */
+60      /* No qualifier */BorrowedFromLeftResult( List<Page<K, V>> copiedPages, Page<K, V> modifiedPage,
+61          Page<K, V> modifiedSibling,
+62          Tuple<K, V> removedElement )
+63      {
+64          super( copiedPages, modifiedPage, modifiedSibling, removedElement,
+65              AbstractBorrowedFromSiblingResult.SiblingPosition.LEFT );
+66      }
+67  
+68  
+69      /**
+70       * @see Object#toString()
+71       */
+72      public String toString()
+73      {
+74          StringBuilder sb = new StringBuilder();
+75  
+76          sb.append( "Borrowed from left" );
+77          sb.append( super.toString() );
+78  
+79          return sb.toString();
+80      }
+81  }
+
+
+ + Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromRightResult.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromRightResult.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromRightResult.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,93 @@ + + + + +BorrowedFromRightResult xref + + + +
+
+1   /*
+2    *  Licensed to the Apache Software Foundation (ASF) under one
+3    *  or more contributor license agreements.  See the NOTICE file
+4    *  distributed with this work for additional information
+5    *  regarding copyright ownership.  The ASF licenses this file
+6    *  to you under the Apache License, Version 2.0 (the
+7    *  "License"); you may not use this file except in compliance
+8    *  with the License.  You may obtain a copy of the License at
+9    *
+10   *    http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   *  Unless required by applicable law or agreed to in writing,
+13   *  software distributed under the License is distributed on an
+14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   *  KIND, either express or implied.  See the License for the
+16   *  specific language governing permissions and limitations
+17   *  under the License.
+18   *
+19   */
+20  package org.apache.directory.mavibot.btree;
+21  
+22  
+23  import java.util.List;
+24  
+25  
+26  /**
+27   * The result of a delete operation, when the child has not been merged. It contains the
+28   * reference to the modified page, and the removed element.
+29   * 
+30   * @param <K> The type for the Key
+31   * @param <V> The type for the stored value
+32  
+33   * @author <a href="mailto:labs@labs.apache.org">Mavibot labs Project</a>
+34   */
+35  /* No qualifier */class BorrowedFromRightResult<K, V> extends AbstractBorrowedFromSiblingResult<K, V>
+36  {
+37      /**
+38       * The default constructor for BorrowedFromRightResult.
+39       * 
+40       * @param modifiedPage The modified page
+41       * @param modifiedSibling The modified sibling
+42       * @param removedElement The removed element (can be null if the key wasn't present in the tree)
+43       */
+44      /* No qualifier */BorrowedFromRightResult( Page<K, V> modifiedPage, Page<K, V> modifiedSibling,
+45          Tuple<K, V> removedElement )
+46      {
+47          super( modifiedPage, modifiedSibling, removedElement, AbstractBorrowedFromSiblingResult.SiblingPosition.RIGHT );
+48      }
+49  
+50  
+51      /**
+52       * A constructor for BorrowedFromRightResult which takes a list of copied pages.
+53       * 
+54       * @param copiedPages the list of copied pages
+55       * @param modifiedPage The modified page
+56       * @param modifiedSibling The modified sibling
+57       * @param removedElement The removed element (can be null if the key wasn't present in the tree)
+58       */
+59      /* No qualifier */BorrowedFromRightResult( List<Page<K, V>> copiedPages, Page<K, V> modifiedPage,
+60          Page<K, V> modifiedSibling, Tuple<K, V> removedElement )
+61      {
+62          super( copiedPages, modifiedPage, modifiedSibling, removedElement,
+63              AbstractBorrowedFromSiblingResult.SiblingPosition.RIGHT );
+64      }
+65  
+66  
+67      /**
+68       * @see Object#toString()
+69       */
+70      public String toString()
+71      {
+72          StringBuilder sb = new StringBuilder();
+73  
+74          sb.append( "Borrowed from right" );
+75          sb.append( super.toString() );
+76  
+77          return sb.toString();
+78      }
+79  }
+
+
+ + Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromSiblingResult.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromSiblingResult.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/xref/org/apache/directory/mavibot/btree/BorrowedFromSiblingResult.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,67 @@ + + + + +BorrowedFromSiblingResult xref + + + +
+
+1   /*
+2    *  Licensed to the Apache Software Foundation (ASF) under one
+3    *  or more contributor license agreements.  See the NOTICE file
+4    *  distributed with this work for additional information
+5    *  regarding copyright ownership.  The ASF licenses this file
+6    *  to you under the Apache License, Version 2.0 (the
+7    *  "License"); you may not use this file except in compliance
+8    *  with the License.  You may obtain a copy of the License at
+9    *
+10   *    http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   *  Unless required by applicable law or agreed to in writing,
+13   *  software distributed under the License is distributed on an
+14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   *  KIND, either express or implied.  See the License for the
+16   *  specific language governing permissions and limitations
+17   *  under the License.
+18   *
+19   */
+20  package org.apache.directory.mavibot.btree;
+21  
+22  
+23  /**
+24   * The result of an delete operation, when we have borrowed some element from a sibling.
+25   * 
+26   * @param <K> The type for the Key
+27   * @param <V> The type for the stored value
+28  
+29   * @author <a href="mailto:labs@labs.apache.org">Mavibot labs Project</a>
+30   */
+31  interface BorrowedFromSiblingResult<K, V> extends DeleteResult<K, V>
+32  {
+33      /**
+34       * @return the modifiedSibling
+35       */
+36      Page<K, V> getModifiedSibling();
+37  
+38  
+39      /**
+40       * Tells if the sibling is on the left
+41       * 
+42       * @return True if the sibling is on the left
+43       */
+44      boolean isFromLeft();
+45  
+46  
+47      /**
+48       * Tells if the sibling is on the right
+49       * 
+50       * @return True if the sibling is on the right
+51       */
+52      boolean isFromRight();
+53  }
+
+
+ +