Giter Site home page Giter Site logo

hl845740757 / java-zset Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 10.0 121 KB

redis的zset的java实现,包含3个版本,Long2ObjZset, Obj2LongZset, GenericZSet。GenericZSet是基准实现,Long2ObjZset, Obj2LongZset是GenericZSet特化实现,以减少大量的拆装箱。 java-zset实现了redis zset中的常用命令,且结合java语言自身的特性,进行了大量优化,包括: 1. score不再限定为double类型,支持泛型score。 2.可自定义ScoreComparator, KeyComparator,使得实现逆序排行榜更加容易,而不是让你总是使用reverse系列接口。 此外,扩展zset较为容易,你可以在理解后自行添加需要的特性。

License: Apache License 2.0

Java 100.00%
zset wjybxx

java-zset's People

Contributors

hl845740757 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

java-zset's Issues

zcount 代码有BUG

    ScoreRangeSpec<Long> range = new ScoreRangeSpec(100000l,false,200000l,false);
    int counts =  zSet.zcount(range);

返回了12万

分数相等的情况需要判断

hi,我来使用了,分数相等情况还是比较常见的,如班级内考试分数一样,话题投票数也会相同,期待支持一下

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.