[ https://issues.apache.org/jira/browse/HBASE-10789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942047#comment-13942047
]
Nick Dimiduk commented on HBASE-10789:
--------------------------------------
Have a look at the [DataType|http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/types/DataType.html]
API. I think we could provide a DataTypeComparator that took into account the presence of
[isOrderPreserving|http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/types/DataType.html#isOrderPreserving()].
For implementations that are order preserving, it can do full ordering efficiently. Of course,
if the type isn't order preserving, it could deserialize the values and compare them natively.
> Add NumberComparator
> --------------------
>
> Key: HBASE-10789
> URL: https://issues.apache.org/jira/browse/HBASE-10789
> Project: HBase
> Issue Type: Improvement
> Components: Filters
> Reporter: haosdent
> Assignee: haosdent
>
> Sometimes user may want to filter out which value less than a positive number. But they
finally would get a result contains negative number.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
|