Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-1703 CQL 1.0
  3. CASSANDRA-2262

use o.a.c.marshal.*Type for CQL

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8 beta 1
    • Legacy/CQL
    • None

    Description

      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.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--v3-0001-CASSANDRA-2262-test-shows-no-roundtrip-in-BytesType.txt
          4 kB
          Eric Evans
        2. ASF.LICENSE.NOT.GRANTED--v3-0002-BytesType.fromString-expects-a-hex-string.txt
          1 kB
          Eric Evans
        3. ASF.LICENSE.NOT.GRANTED--v3-0003-compose-method-for-AbstractTypes.txt
          14 kB
          Eric Evans
        4. ASF.LICENSE.NOT.GRANTED--v3-0004-assume-utf8-in-CliTest-keys-dammit.txt
          4 kB
          Eric Evans
        5. ASF.LICENSE.NOT.GRANTED--v3-0005-AbstractType.fromString-throws-MarshalException.txt
          5 kB
          Eric Evans
        6. ASF.LICENSE.NOT.GRANTED--v3-0006-expand-fromString-parsing-of-TimeUUIDType.txt
          4 kB
          Eric Evans
        7. ASF.LICENSE.NOT.GRANTED--v3-0007-catch-MarshalException-raise-RuntimeException.txt
          2 kB
          Eric Evans
        8. ASF.LICENSE.NOT.GRANTED--v3-0008-remove-Override-annotations.txt
          2 kB
          Eric Evans
        9. ASF.LICENSE.NOT.GRANTED--v6-0001-test-shows-no-roundtrip-in-BytesType.txt
          4 kB
          Gary Dusbabek
        10. ASF.LICENSE.NOT.GRANTED--v6-0002-BytesType.fromString-expects-a-hex-string.txt
          1 kB
          Gary Dusbabek
        11. ASF.LICENSE.NOT.GRANTED--v6-0003-compose-method-for-AbstractTypes.txt
          15 kB
          Gary Dusbabek
        12. ASF.LICENSE.NOT.GRANTED--v6-0004-assume-utf8-in-CliTest-keys-dammit.txt
          4 kB
          Gary Dusbabek
        13. ASF.LICENSE.NOT.GRANTED--v6-0005-AbstractType.fromsString-throws-MarshalException.txt
          5 kB
          Gary Dusbabek
        14. ASF.LICENSE.NOT.GRANTED--v6-0006-expand-fromString-parsing-of-TimeUUIDType.txt
          4 kB
          Gary Dusbabek
        15. ASF.LICENSE.NOT.GRANTED--v6-0007-catch-MarshallException-raise-RuntimeException.txt
          2 kB
          Gary Dusbabek
        16. ASF.LICENSE.NOT.GRANTED--v6-0008-unit-test-for-TimeUUIDType.fromString.txt
          4 kB
          Gary Dusbabek

        Activity

          People

            gdusbabek Gary Dusbabek
            urandom Eric Evans
            Gary Dusbabek
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: