Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 60886 invoked from network); 3 Apr 2009 12:53:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 12:53:37 -0000 Received: (qmail 75298 invoked by uid 500); 3 Apr 2009 12:53:37 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 75243 invoked by uid 500); 3 Apr 2009 12:53:37 -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 75234 invoked by uid 99); 3 Apr 2009 12:53:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 12:53:36 +0000 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION 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; Fri, 03 Apr 2009 12:53:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0626723889BA; Fri, 3 Apr 2009 12:53:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r761654 - /directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Table.java Date: Fri, 03 Apr 2009 12:53:13 -0000 To: commits@directory.apache.org From: akarasulu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090403125314.0626723889BA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: akarasulu Date: Fri Apr 3 12:53:13 2009 New Revision: 761654 URL: http://svn.apache.org/viewvc?rev=761654&view=rev Log: better doco Modified: directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Table.java Modified: directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Table.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Table.java?rev=761654&r1=761653&r2=761654&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Table.java (original) +++ directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Table.java Fri Apr 3 12:53:13 2009 @@ -28,8 +28,11 @@ /** * An abstraction representing a data structure holding key value pairs in * Tuples (a.k.a. Entries) where keys and values are ordered and duplicate - * keys may or may not be allowed. Table normalizes implementation interfaces - * so a common view of information is presented to the search engine. + * keys may or may not be allowed. The Table interface is a cannonical + * view of key value data stored and access by implementations with varying + * interfaces. Wrapping these data structures as a Table implementation + * helps present a common view to the search engine and partition + * implementation. * * @author Apache Directory Project * @version $Rev$ @@ -73,14 +76,15 @@ /** * Checks whether or not calls to count the number of keys greater than or - * less than the key are exact or approximated. + * less than the key are exact or approximated. This has no bearing on the + * accuracy of the {@link #count()} and {@link #count(K)} methods. * * Checking to see the number of values greater than or less than some key * may be excessively costly. Since this is not a critical function but - * one that assists in optimizing searches some implementations can just - * return a worst case (maximum) guess. + * one that assists in optimizing searches, some implementations can just + * return a worst case (maximum) value. * - * @return true if the count is an exact value or a worst case guess + * @return true if the count is an exact value or false for worst case */ boolean isCountExact(); @@ -244,7 +248,7 @@ /** * Creates a Cursor that traverses Tuples in a Table. - * + * * @return a Cursor over Tuples containing the key value pairs * @throws Exception if there are failures accessing underlying stores */