分类的字段int f1

/* key: f1

* value: doc

* size: top n

*/

map<int, doc>()

if(map.size==n)

 buildOrderedSet

每新来一个文档 先跟orderedSet的bottom进行比较

比较失败,则遍历下一个文档

成功,则以新文档的f1为key, 从map中get

  如果获取不到,说明 这个key要加进来

  如果获取到,则跟现有的key的value进行比较,成功则进行更新。

topngroupcollector的更多相关文章

随机推荐

  1. Axure RP里单选按钮组

    选中要编组的单选项,然后照下图所示给这一组单选编一个名字.

  2. rman的使用

    下面是两种连接方式[oracle@oracle3A ~]$ rman target/ Recovery Manager: Release 11.2.0.1.0 - Production on Mon ...

  3. unity 4 Please check your configuration file and verify this type name.

    The problem is in you config file. You are mixing two concepts with some incorrect syntax. The <a ...

  4. firefox不支持background-position-x background-position-y,使用background-position:5px 5px;

    firefox不支持background-position-x background-position-y,使用background-position:5px 5px;

  5. jQuery Mobile_公司简介

    <!doctype html> <html> <head> <meta charset="utf-8"> <meta name ...

  6. MyBatis SQL xml处理小于号与大于号

    MyBatis SQL xml处理小于号与大于号 当我们需要通过xml格式处理sql语句时,经常会用到< ,<=,>,>=等符号,但是很容易引起xml格式的错误,这样会导致后台 ...

  7. javascript中的removeEventListener失效问题

    一般现在我们用js绑定事件是 addEventListener(event,function,bool) event:事件的名称 字符串 如:'click', function: 事件处理的方法: b ...

  8. java.io.IOException: ORA-22920: 未锁定含有 LOB 值的行

         究其原因是因为没有锁定要更新的行记录.将 mysql="select filebody from filelist where filename=?"中的SQL语句加上 ...

  9. 【linux】cut

    vim test id name age score 101 paul 18 100 102 suan 11 99 103 peter 18 98 [root@andon ~]# cut -f 2 t ...

  10. Networking in too much detail

    The players This document describes the architecture that results from a particular OpenStack config ...