Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 51780 invoked from network); 8 Mar 2011 21:50:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Mar 2011 21:50:21 -0000 Received: (qmail 88001 invoked by uid 500); 8 Mar 2011 21:50:21 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 87970 invoked by uid 500); 8 Mar 2011 21:50:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 87961 invoked by uid 99); 8 Mar 2011 21:50:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 21:50:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 21:50:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1F0B839E6A1 for ; Tue, 8 Mar 2011 21:50:00 +0000 (UTC) Date: Tue, 8 Mar 2011 21:50:00 +0000 (UTC) From: "Gary Dusbabek (JIRA)" To: commits@cassandra.apache.org Message-ID: <1893862421.6265.1299621000123.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1664236905.8869.1299099156933.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (CASSANDRA-2262) use o.a.c.marshal.*Type for CQL 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/CASSANDRA-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Dusbabek updated CASSANDRA-2262: ------------------------------------- Attachment: v6-0008-unit-test-for-TimeUUIDType.fromString.txt v6-0007-catch-MarshallException-raise-RuntimeException.txt v6-0006-expand-fromString-parsing-of-TimeUUIDType.txt v6-0005-AbstractType.fromsString-throws-MarshalException.txt v6-0004-assume-utf8-in-CliTest-keys-dammit.txt v6-0003-compose-method-for-AbstractTypes.txt v6-0002-BytesType.fromString-expects-a-hex-string.txt v6-0001-test-shows-no-roundtrip-in-BytesType.txt > use o.a.c.marshal.*Type for CQL > -------------------------------- > > Key: CASSANDRA-2262 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2262 > Project: Cassandra > Issue Type: Sub-task > Components: API > Affects Versions: 0.8 > Reporter: Eric Evans > Assignee: Gary Dusbabek > Priority: Minor > Fix For: 0.8 > > Attachments: v3-0001-CASSANDRA-2262-test-shows-no-roundtrip-in-BytesType.txt, v3-0002-BytesType.fromString-expects-a-hex-string.txt, v3-0003-compose-method-for-AbstractTypes.txt, v3-0004-assume-utf8-in-CliTest-keys-dammit.txt, v3-0005-AbstractType.fromString-throws-MarshalException.txt, v3-0006-expand-fromString-parsing-of-TimeUUIDType.txt, v3-0007-catch-MarshalException-raise-RuntimeException.txt, v3-0008-remove-Override-annotations.txt, v5-0006-expand-fromString-parsing-of-TimeUUIDType.txt, v5-0007-catch-MarshalException-raise-RuntimeException.txt, v6-0001-test-shows-no-roundtrip-in-BytesType.txt, v6-0002-BytesType.fromString-expects-a-hex-string.txt, v6-0003-compose-method-for-AbstractTypes.txt, v6-0004-assume-utf8-in-CliTest-keys-dammit.txt, v6-0005-AbstractType.fromsString-throws-MarshalException.txt, v6-0006-expand-fromString-parsing-of-TimeUUIDType.txt, v6-0007-catch-MarshallException-raise-RuntimeException.txt, v6-0008-unit-test-for-TimeUUIDType.fromString.t xt > > Original Estimate: 0h > Remaining Estimate: 0h > > Presently, {{o.a.c.cql.Term.getByteBuffer}} manage's the conversion from a parsed term to a {{ByteBuffer}} of the right contents, this should be moved into the individual {{AbstractType}} subclasses (aka {{AbstractType.fromString}}). > Additionally, a method that does the inverse (returning the string equivalent), needs to exists such that {{AbstractType.getString(AbstractType.fromString(s)) == s}} > Finally, for use in results decoding a method should exist that given a {{ByteBuffer}} will return the appropriate object for that type. For example, {{IntegerType.compose(ByteBuffer) -> java.math.BigInteger}}, or {{LexicalUUIDType.compose(ByteBuffer) -> java.util.UUID}}. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira