Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E683C256 for ; Thu, 31 May 2012 12:51:24 +0000 (UTC) Received: (qmail 44028 invoked by uid 500); 31 May 2012 12:51:24 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 43998 invoked by uid 500); 31 May 2012 12:51:24 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 43988 invoked by uid 99); 31 May 2012 12:51:24 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 12:51:24 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 0D797140C2C for ; Thu, 31 May 2012 12:51:23 +0000 (UTC) Date: Thu, 31 May 2012 12:51:23 +0000 (UTC) From: "angela (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <989409248.21715.1338468684058.JavaMail.jiratomcat@issues-vm> In-Reply-To: <879830662.41055.1332323139392.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (OAK-33) Values in oak-core MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OAK-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] angela resolved OAK-33. ----------------------- Resolution: Fixed Fix Version/s: 0.3 > Values in oak-core > ------------------ > > Key: OAK-33 > URL: https://issues.apache.org/jira/browse/OAK-33 > Project: Jackrabbit Oak > Issue Type: New Feature > Components: core > Reporter: Thomas Mueller > Assignee: angela > Fix For: 0.3 > > > There is no JCR API in oak-core, but we still need to deal with values and data types. We have multiple options, I can think of: > (A) String everywhere, as in oak-mk > (B) Use javax.jcr.Value > (C) An immutable "Value" class (but doesn't need to be called "Value") > There are multiple problems with (A), for example compile time safety, and I fear the code would get unnecessarily complex, not as efficient as it could get (specially when dealing with numbers), memory usage would be higher. > I think we said (B) isn't an option because we don't want to use the JCR API in oak-core (see also OAK-16). > As for (C), I have a first prototype, mainly because I needed it to be able to migrate the query feature to oak-core. The prototype is in > org.apache.jackrabbit.oak.query.ValueFactory > org.apache.jackrabbit.oak.query.Value > org.apache.jackrabbit.oak.query.PropertyType > It's very similar to javax.jcr (even the property types are the same), but the values are immutable. They currently implement Comparable, but that's also open for discussion. One sub-problem is binaries: should they contain a reference to the MicroKernel instance, or some other "storage backend" (possibly a temp file backend)? > Concrete suggestions (and patches) are welcome. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira