Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF4B578C0 for ; Wed, 17 Aug 2011 16:32:10 +0000 (UTC) Received: (qmail 83213 invoked by uid 500); 17 Aug 2011 16:32:10 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 83141 invoked by uid 500); 17 Aug 2011 16:32:09 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 83134 invoked by uid 99); 17 Aug 2011 16:32:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 16:32:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 209.85.161.50 as permitted sender) Received: from [209.85.161.50] (HELO mail-fx0-f50.google.com) (209.85.161.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 16:32:01 +0000 Received: by fxh2 with SMTP id 2so932246fxh.37 for ; Wed, 17 Aug 2011 09:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=v8zTKtNnh916jLaVK2JSsdh/6J75YBUiWPH6UcibwXs=; b=jsZZjZMTwewJEYvZ7dJwW+1Kdar7k20mv3cupe1J/+hsRd/hQslFMW1i528INqk5Ba so0MHuH+q6W2qTFYGs4kVY9g6/qk3gUVZKKU9Y8XIOBuNmdz5n3MQfKNtjJV6RHXlGaf RYtw5lg6j6qq3OrBcvOri5OctHrSGIiP16Ue8= Received: by 10.223.32.67 with SMTP id b3mr1677274fad.25.1313598701109; Wed, 17 Aug 2011 09:31:41 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net [78.192.106.184]) by mx.google.com with ESMTPS id g16sm1015890faa.27.2011.08.17.09.31.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 09:31:40 -0700 (PDT) Message-ID: <4E4BECE7.1060108@gmail.com> Date: Wed, 17 Aug 2011 18:31:35 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Cursor hierarchy under review Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, as Stefan has found a serious issue in the way we handle JdbmIndex (https://issues.apache.org/jira/browse/DIRSERVER-1642), I'm spending a few hours reviewing the Cursor hierarchy. There is plenty of room for improvements, and I have started to clean up a bit what is obvious, like renaming some classes to be consistent with our current code (for instance, we have no more ServerEntry class, so the ServerEntryCursorAdaptor has been renamed to EntryCursorAdaptor. I'm also migrating some commmon methods to the existig Abstract class when useful). I'm also adding some missing Javadoc. I will continuedoing that the next two days, and I hope we can get rid of DIRSERVER-1642 and https://issues.apache.org/jira/browse/DIRSERVER-1458 (an issue I have created one year ago. Don't get me wrong : its title is certainly abrupt, but back them, I wasn't able to understand anything about this hierarchy. I would rather say that the cursor API generic usage could be improved...) Keep tuned. Thanks ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com