CN104731715B - The sort method and device of a kind of data block - Google Patents

The sort method and device of a kind of data block Download PDF

Info

Publication number
CN104731715B
CN104731715B CN201510149842.8A CN201510149842A CN104731715B CN 104731715 B CN104731715 B CN 104731715B CN 201510149842 A CN201510149842 A CN 201510149842A CN 104731715 B CN104731715 B CN 104731715B
Authority
CN
China
Prior art keywords
data block
data
stored
priority
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510149842.8A
Other languages
Chinese (zh)
Other versions
CN104731715A (en
Inventor
陈茜辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201510149842.8A priority Critical patent/CN104731715B/en
Publication of CN104731715A publication Critical patent/CN104731715A/en
Application granted granted Critical
Publication of CN104731715B publication Critical patent/CN104731715B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of sort method of data block and device, reasonably to be sorted to the data block of data storage, realizes that user carries out convenience to ordering data block and checked.Methods described includes:For data distribution data block to be stored, and by data storage to after distributing in corresponding data block;According to predetermined order rule, the data block of data storage is ranked up;The data block after display sequence;The purpose reasonably to be sorted to the data block of data storage is reached, has realized user and ordering data block progress convenience is checked.

Description

The sort method and device of a kind of data block
Technical field
The present invention relates to Internet technical field, the sort method and device of more particularly to a kind of data block.
Background technology
By the rapid development of Internet technology in recent years, the business of internet is continuously increased, and people are based on internet Various information resources more and more are touched, for example people can obtain and watch current events by Web TV News, network variety show, network film and TV play etc..People are accessed using with frequent the close of internet, it is desirable to mutually The various digital resources shown in networking can have it is certain put in order, so as to meeting user to display interface aesthetic feeling requirement While, also to meet the requirement that the convenience of user is searched and used.Therefore, how the data block of data storage is arranged Sequence turns into one of current urgent problem to be solved.
The content of the invention
The embodiment of the present invention provides a kind of sort method and device of data block, to be carried out to the data block of data storage Reasonably sort, realize that user carries out convenience to ordering data block and checked.
The embodiment of the present invention provides a kind of sort method of data block, including:
For data distribution data block to be stored, and by data storage to after distributing in corresponding data block;
According to predetermined order rule, the data block of data storage is ranked up;
The data block after display sequence.
In one embodiment, described is data distribution data block to be stored, and data storage is corresponded to after distributing Data block in, including:
Obtain the priority corresponding to data to be stored;
According to the priority of acquisition, for the data block of different numbers corresponding to data distribution priority to be stored;
By in the data block of different numbers corresponding to data storage to priority.
In one embodiment, the priority according to acquisition, corresponding to data distribution priority to be stored not With the data block of number, including:
If the priority corresponding to the data to be stored obtained is higher, for the data block of the data distribution to be stored Number is also more.
In one embodiment, it is described according to predetermined order rule, the data block of data storage is ranked up, wrapped Include:
The data block of predetermined number is correspondingly formed a line, obtains first row data block;
Whether the number of remaining data block is less than predetermined threshold value after identification sequence;
When identifying that the number of remaining data block is more than or equal to the predetermined threshold value, remaining data block is lined up One row, obtain secondary series data block;
When identifying that the number of remaining data block is less than the predetermined threshold value, remaining data block is arranged in first Row, and scroll bar control is added in the first row data block after arrangement.
In one embodiment, the data block after the display sequence, including:
Data block after display sequence, and show scroll bars control simultaneously, are looked into for user by sliding-rolling bar control See display content corresponding to all data blocks of arrangement.
Corresponding to the sort method of above-mentioned data block, the embodiment of the present invention additionally provides a kind of collator of data block, Including:
Distribute module, for for data distribution data block to be stored, and by data storage to after distributing corresponding data In block;
Order module, for according to predetermined order rule, being ranked up to the data block of data storage;
Display module, for showing the data block after sorting.
In one embodiment, the distribute module includes:
Acquiring unit, for obtaining the priority corresponding to data to be stored;
Allocation unit, it is different numbers corresponding to data distribution priority to be stored for the priority according to acquisition Data block;
Memory cell, for by the data block of different numbers corresponding to data storage to priority.
In one embodiment, the allocation unit is additionally operable to:
If the priority corresponding to the data to be stored that the acquiring unit obtains is higher, for the data to be stored point The number for the data block matched somebody with somebody is also more.
In one embodiment, the order module includes:
Arrangement units, for the data block of predetermined number correspondingly to be formed a line, obtain first row data block;
Recognition unit, whether the number of remaining data block is less than predetermined threshold value after being sorted for identification;
The arrangement units are additionally operable to:
, will be surplus when the recognition unit identifies that the number of remaining data block is more than or equal to the predetermined threshold value Under data block form a line, obtain secondary series data block;When the recognition unit identifies that the number of remaining data block is small When the predetermined threshold value, remaining data block is arranged in first row, and in the first row data block after arrangement Add scroll bar control.
In one embodiment, the display module is additionally operable to:
Data block after display sequence, and show scroll bars control simultaneously, are looked into for user by sliding-rolling bar control See display content corresponding to all data blocks of arrangement.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the sort method of data block of the present invention according to an exemplary embodiment;
Step S10 stream in a kind of sort method of data blocks of the Fig. 2 for the present invention according to an exemplary embodiment Cheng Tu;
Step S20 stream in a kind of sort method of data blocks of the Fig. 3 for the present invention according to an exemplary embodiment Cheng Tu;
Fig. 4 is a kind of block diagram of the collator of data block of the present invention according to an exemplary embodiment;
Distribute module 60 in a kind of collator of data blocks of the Fig. 5 for the present invention according to an exemplary embodiment Block diagram;
Order module 70 in a kind of collator of data blocks of the Fig. 6 for the present invention according to an exemplary embodiment Block diagram.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
A kind of sort method of data block is provided in an embodiment disclosed by the invention, to reasonably to data storage Data block be ranked up, realize to ordering data block carry out convenience check.As shown in figure 1, the embodiment of the present invention A kind of sort method of middle data block includes step S10-S30:
Step S10, it is data distribution data block to be stored, and by corresponding data block after data storage to distribution;
It is first data block corresponding to data distribution to be stored in the sort method of data block of the embodiment of the present invention;Point After complete corresponding data block, by corresponding data block after data storage to be stored to distribution.
In one embodiment, as shown in Fig. 2 step S10 may be embodied as step S101-S103:
Step S101, the priority corresponding to data to be stored is obtained;
It is the priority according to different pieces of information to be stored for data distribution data block to be stored in the embodiment of the present invention Come what is be allocated.Therefore, for data distribution data block to be stored when, obtain data to be stored first and correspond to respectively Priority.
Step S102, according to the priority of acquisition, for the number of different numbers corresponding to data distribution priority to be stored According to block;
The priority according to corresponding to being distinguished the data to be stored of acquisition, it is corresponding to data distribution to be stored its priority The data block of different numbers.Wherein, the priority corresponding to the data to be stored of acquisition is higher, then is the data to be stored point The number for the data block for storing the data matched somebody with somebody is also more.Such as the data distribution to be stored one for normal priority Data block, if the high priority of data to be stored, for two data blocks of content assignment corresponding to the data to be stored;Such as A fruit data to be stored high priority again, then be four data blocks of content assignment corresponding to the data to be stored, by that analogy.
Step S103, by the data block of different numbers corresponding to data storage to priority.
After the good corresponding data block of data distribution to be stored, by the priority institute of above-mentioned data storage to the data content In the data block of corresponding different numbers.In one embodiment, take multiple data blocks data content there may be it is multiple.
Step S20, according to predetermined order rule, the data block of data storage is ranked up;
After data storage to be stored to corresponding data block, according to ordering rule set in advance, to data storage Data block be ranked up.
In one embodiment, as shown in figure 3, step S20 may be embodied as step S201-S204:
Step S201, the data block of predetermined number is correspondingly formed a line, obtains first row data block;
Step S202, whether the number of remaining data block is less than predetermined threshold value after identification sequence;
When identifying that the number of remaining data block is more than or equal to the predetermined threshold value, perform:
Step S203, remaining data block is formed a line, obtains secondary series data block;
When identifying that the number of remaining data block is less than the predetermined threshold value, perform:
Step S204, remaining data block is arranged in first row, and in the first row data block after arrangement Add scroll bar control.
For example when storing data corresponding to news, data corresponding to daily news content take a data block, then will Three data blocks form a line, and are first row data block.After forming a line, if need also exist for the data block of arrangement, know The number of data block arranged is not needed.For example if also two data blocks need to arrange, directly by the two data blocks Secondary series is lined up, thus, has obtained secondary series data block.If an only remaining data block needs to arrange, to this data Block carries out redundancy processing, the data block is disposed directly at into first row data block, and add in the first row data block after arrangement Add scroll bar control, the data block of the arrangement of lower section, such as being added in the embodiment can be seen in user's sliding-rolling bar Fourth data block in first row data block.
Step S30, the data block after display sequence.
After being ranked up to above-mentioned data block, directly the data block after sequence is shown, checked for user.It is if above-mentioned Data block has the redundancy processing for carrying out data block in arrangement, and with the addition of scroll bar control in arrangement corresponding to data block, Then in the data block after display arranges, the scroll bar control of addition is shown in the lump;Thus, user, which becomes, can pass through sliding-rolling Bar checks content corresponding to all data blocks of arrangement.
The aligning method of data above block, by for data distribution data block to be stored, and by data storage to distributing Afterwards in corresponding data block;According to predetermined order rule, the data block of data storage is ranked up;Institute after display sequence State data block;Reach the purpose reasonably to be sorted to the data block of data storage, realize user to ordering number Checking for convenience is carried out according to block.
A kind of corresponding sort method of data block provided in an embodiment of the present invention, present invention also offers a kind of data block Collator;As shown in figure 4, a kind of collator of data block, including:Distribute module 60, order module 70 and display Module 80.Wherein:
Distribute module 60, for for data distribution data block to be stored, and by data storage to after distributing corresponding number According in block;
In one embodiment, as shown in figure 5, the distribute module 60 includes:
Acquiring unit 601, for obtaining the priority corresponding to data to be stored;
Allocation unit 602, it is different corresponding to data distribution priority to be stored for the priority according to acquisition Several data blocks;
Memory cell 603, for by the data block of different numbers corresponding to data storage to priority.
In one embodiment, the allocation unit 602 is additionally operable to:
If the priority corresponding to the data to be stored that the acquiring unit 601 obtains is higher, for the number to be stored Number according to the data block of distribution is also more.
Order module 70, for according to predetermined order rule, being ranked up to the data block of data storage.
In one embodiment, as shown in fig. 6, the order module 70 includes:
Arrangement units 701, for the data block of predetermined number correspondingly to be formed a line, obtain first row data block;
Recognition unit 702, whether the number of remaining data block is less than predetermined threshold value after being sorted for identification;
The arrangement units 701 are additionally operable to:
When the recognition unit 702 identifies that the number of remaining data block is more than or equal to the predetermined threshold value, The arrangement units 701 form a line remaining data block, obtain secondary series data block;When the recognition unit 702 identifies When going out the number of remaining data block and being less than the predetermined threshold value, remaining data block is arranged in by the arrangement units 701 First row, and scroll bar control is added in the first row data block after arrangement.
Display module 80, for showing the data block after sorting.
In one embodiment, the display module 80 is additionally operable to:
Data block after display sequence, and show scroll bars control simultaneously, are looked into for user by sliding-rolling bar control See display content corresponding to all data blocks of arrangement.
The collating unit of data above block, by for data distribution data block to be stored, and by data storage to distributing Afterwards in corresponding data block;According to predetermined order rule, the data block of data storage is ranked up;Institute after display sequence State data block;Reach the purpose reasonably to be sorted to the data block of data storage, realize user to ordering number Checking for convenience is carried out according to block.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (6)

  1. A kind of 1. sort method of data block, it is characterised in that including:
    For data distribution data block to be stored, and by data storage to after distributing in corresponding data block;
    According to predetermined order rule, the data block of data storage is ranked up;
    The data block after display sequence;
    Described is data distribution data block to be stored, and by data storage to after distributing in corresponding data block, including:
    Obtain the priority corresponding to data to be stored;
    According to the priority of acquisition, for the data block of different numbers corresponding to data distribution priority to be stored;
    By in the data block of different numbers corresponding to data storage to priority;
    It is described regular according to predetermined order, the data block of data storage is ranked up, including:
    The data block of predetermined number is correspondingly formed a line, obtains first row data block;
    Whether the number of remaining data block is less than predetermined threshold value after identification sequence;
    When identifying that the number of remaining data block is more than or equal to the predetermined threshold value, remaining data block is lined up one Row, obtain secondary series data block;
    When identifying that the number of remaining data block is less than the predetermined threshold value, remaining data block is arranged in first row, And scroll bar control is added in the first row data block after arrangement.
  2. 2. the method as described in claim 1, it is characterised in that the priority according to acquisition, for data to be stored point Data block with different numbers corresponding to priority, including:
    If the priority corresponding to the data to be stored obtained is higher, for the number of the data block of the data distribution to be stored Also it is more.
  3. 3. the method as described in claim 1, it is characterised in that the data block after the display sequence, including:
    Data block after display sequence, and show scroll bars control simultaneously, for user by sliding-rolling bar control come the row of checking Display content corresponding to all data blocks of row.
  4. A kind of 4. collator of data block, it is characterised in that including:
    Distribute module, for for data distribution data block to be stored, and by data storage to after distributing in corresponding data block;
    Order module, for according to predetermined order rule, being ranked up to the data block of data storage;
    Display module, for showing the data block after sorting;
    The distribute module includes:
    Acquiring unit, for obtaining the priority corresponding to data to be stored;
    Allocation unit, for the priority according to acquisition, for the number of different numbers corresponding to data distribution priority to be stored According to block;
    Memory cell, for by the data block of different numbers corresponding to data storage to priority;
    The order module includes:
    Arrangement units, for the data block of predetermined number correspondingly to be formed a line, obtain first row data block;
    Recognition unit, whether the number of remaining data block is less than predetermined threshold value after being sorted for identification;
    The arrangement units are additionally operable to:
    , will be remaining when the recognition unit identifies that the number of remaining data block is more than or equal to the predetermined threshold value Data block forms a line, and obtains secondary series data block;When the recognition unit identifies that the number of remaining data block is less than institute When stating predetermined threshold value, remaining data block is arranged in first row, and added in the first row data block after arrangement Scroll bar control.
  5. 5. device as claimed in claim 4, it is characterised in that the allocation unit is additionally operable to:
    If the priority corresponding to the data to be stored that the acquiring unit obtains is higher, for the data distribution to be stored The number of data block is also more.
  6. 6. device as claimed in claim 4, it is characterised in that the display module is additionally operable to:
    Data block after display sequence, and show scroll bars control simultaneously, for user by sliding-rolling bar control come the row of checking Display content corresponding to all data blocks of row.
CN201510149842.8A 2015-03-31 2015-03-31 The sort method and device of a kind of data block Expired - Fee Related CN104731715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510149842.8A CN104731715B (en) 2015-03-31 2015-03-31 The sort method and device of a kind of data block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510149842.8A CN104731715B (en) 2015-03-31 2015-03-31 The sort method and device of a kind of data block

Publications (2)

Publication Number Publication Date
CN104731715A CN104731715A (en) 2015-06-24
CN104731715B true CN104731715B (en) 2018-02-09

Family

ID=53455623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510149842.8A Expired - Fee Related CN104731715B (en) 2015-03-31 2015-03-31 The sort method and device of a kind of data block

Country Status (1)

Country Link
CN (1) CN104731715B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530220A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Display method and system and terminal for application program icons
CN103702216A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Intelligent terminal and method for displaying video images by same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101268133B1 (en) * 2011-06-23 2013-05-27 엘지전자 주식회사 Method for displaying program information and display apparatus thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530220A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Display method and system and terminal for application program icons
CN103702216A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Intelligent terminal and method for displaying video images by same

Also Published As

Publication number Publication date
CN104731715A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN105637925B (en) Dynamic frequency and power resource allocation with refinement tactical management
CN106326391B (en) Multimedia resource recommendation method and device
CN108090208A (en) Fused data processing method and processing device
CN108829469A (en) A kind of application program page methods of exhibiting and device
CN109300008A (en) A kind of information recommendation method and device
CN106331735B (en) Special effect processing method, electronic equipment and server
CN109255072A (en) Information recalls method and device, computer storage medium, electronic equipment
CN106227870A (en) A kind of video website recommends method and device
CN109511015A (en) Multimedia resource recommended method, device, storage medium and equipment
CN108241531A (en) A kind of method and apparatus for distributing resource for virtual machine in the cluster
WO2022095358A1 (en) Task scheduling method and apparatus, electronic device, and readable storage medium
CN104866556A (en) Database fault handling method and apparatus, and database system
CN107423942A (en) A kind of method and device of work flow
CN106775470A (en) A kind of method and system of data storage
CN109582305B (en) Encoding method and device for mobile application page elements and electronic equipment
CN104378394A (en) Method and device for updating server cluster file
CN104731715B (en) The sort method and device of a kind of data block
CN103902380B (en) A kind of method, apparatus and equipment determining resource allocation using sandbox
CN104185085B (en) A kind of VOD method and device
CN112052330B (en) Application keyword distribution method and device
WO2014141510A1 (en) Test design assistance device, test design assistance method, program, and computer read medium
CN104750560B (en) A kind of information processing method and electronic equipment
CN114841604A (en) Cooperative task processing method, device and equipment and computer readable storage medium
CN107527228A (en) A kind of method and device for sending electronic ticket
CN104915408B (en) A kind of method and device of social search result displaying

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A sort method and device of data block

Effective date of registration: 20210104

Granted publication date: 20180209

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001527

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180209

Termination date: 20210331