首页> 外国专利> DATA SORTING METHOD AND SYSTEM BASED ON MAPREDUCE MODEL

DATA SORTING METHOD AND SYSTEM BASED ON MAPREDUCE MODEL

机译:基于映射减少模型的数据排序方法和系统

摘要

A data sorting method and system based on a MapReduce model. The sorting method comprising the following steps: when each MAP module sorts elements in a data block in a MAP phase, each time a sorting result of one element is determined, adding the element to a first-in-first-out data structure; in a Reduce phase, a Reduce module acquiring all current elements in the first-in-first-out data structure; acquiring a current global extremum element; outputting the current global extremum element as a sorting resu removing the output current global extremum element from a Reduce-phase element set, and updating the Reduce-phase element set. With the method and the system, without the need of waiting until a sorting process in a MAP phase ends, an extremum element can be selected from current elements in a first-in-first-out cache queue in a Reduce phase, and a sorting result is output in a streamed manner. In this way, the sorting result can be output in advance, so as to reduce the waiting time of the user.
机译:一种基于MapReduce模型的数据排序方法和系统。该排序方法,包括以下步骤:当每个MAP模块在MAP阶段对数据块中的元素进行排序时,每次确定一个元素的排序结果时,将该元素添加到先进先出数据结构中;在Reduce阶段,Reduce模块获取先进先出数据结构中的所有当前元素;获取当前的全球极值要素;输出当前全局极值元素作为排序结果;从“减少相位”元素集中删除输出电流全局极值元素,并更新“减少相位”元素集。利用该方法和系统,无需等待直到MAP阶段的排序过程结束,就可以在Reduce阶段从先进先出高速缓存队列中的当前元素中选择极值元素,并进行排序结果以流方式输出。这样,可以预先输出分类结果,从而减少了用户的等待时间。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号