cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Folke Behrens (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-1282) NumericType: comparator for integers of fixed and arbitrary length
Date Sat, 24 Jul 2010 00:27:50 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Folke Behrens updated CASSANDRA-1282:
-------------------------------------

    Attachment: 0001-1282-v4.patch
                0002-instance-field.patch
                0003-system-tests.patch

0001: Jonathan's patch / 0002: singleton instance field / 0003: simple system tests copied
from StandardLong1

> NumericType: comparator for integers of fixed and arbitrary length
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-1282
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1282
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Folke Behrens
>            Assignee: Folke Behrens
>             Fix For: 0.7 beta 1
>
>         Attachments: 0001-1282-v4.patch, 0002-instance-field.patch, 0003-system-tests.patch,
1282-v4.txt, trunk-1282-v3.txt, trunk-1282.txt
>
>
> Patch introduces a new column comparator: NumericType. It can compare signed integer
values of fixed (int, long) and arbitrary length (BigInteger). Both can be mixed. Leading
zero bytes or 0xFF bytes will be ignored and can safely be stripped on compaction.
> The trivial version uses "new BigInteger(byte[]).compareTo(new BigInteger(byte[]))" but
it's slower and fills up memory.
> The faster version operates completely on stack and should even obsolete LongType.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message