Method for updating inverted index of flash SSD
First Claim
1. A method for updating an inverted index of a flash solid state disk (SSD), the method comprising:
- wherein an on-disk inverted index of the flash SSD is constituted by terms and a posting list which is a list of postings corresponding to the respective terms, and at least one block which has a predetermined size and is used for containing postings is provided for each term, andwherein an in-memory inverted index of a memory is constituted by input terms and postings corresponding to the respective input terms,storing postings of an input term that is present in only the in-memory inverted index in a block of an output buffer of the memory and reading out postings of a last block of a posting list of each term to be updated from the on-disk inverted index to thereby storing the read-out postings in a corresponding block of an input buffer of the memory, by scanning the on-disk inverted index and the in-memory inverted index;
moving the postings stored in the corresponding block of the input buffer to a corresponding block of the output buffer and attaching new postings of each term in the in-memory inverted index to the corresponding block of the output buffer; and
updating the on-disk inverted index by using the postings of each block of the output buffer,wherein in the updating, the blocks of the output buffer to which the new postings are attached are overwritten to the blocks of the on-disk inverted index and the block of the output buffer storing the postings of the input term which is present in only the in-memory inverted index is written in a rear part of the on-disk inverted index.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a method for updating an inverted index of a flash solid state disk (SSD). The method including: storing postings of a term that is present in only an in-memory inverted index in a block of an output buffer and reading postings of a last block of each posting list to be updated from an on-disk inverted index to be stored in each block of an input buffer, by scanning the on-disk inverted index and the in-memory inverted index; moving postings of the input buffer to the blocks of the output buffer for each block and attaching new postings of the in-memory inverted index to the block corresponding to the output buffer; and updating the on-disk inverted index by using the postings of each block of the output buffer.
-
Citations
14 Claims
-
1. A method for updating an inverted index of a flash solid state disk (SSD), the method comprising:
-
wherein an on-disk inverted index of the flash SSD is constituted by terms and a posting list which is a list of postings corresponding to the respective terms, and at least one block which has a predetermined size and is used for containing postings is provided for each term, and wherein an in-memory inverted index of a memory is constituted by input terms and postings corresponding to the respective input terms, storing postings of an input term that is present in only the in-memory inverted index in a block of an output buffer of the memory and reading out postings of a last block of a posting list of each term to be updated from the on-disk inverted index to thereby storing the read-out postings in a corresponding block of an input buffer of the memory, by scanning the on-disk inverted index and the in-memory inverted index; moving the postings stored in the corresponding block of the input buffer to a corresponding block of the output buffer and attaching new postings of each term in the in-memory inverted index to the corresponding block of the output buffer; and updating the on-disk inverted index by using the postings of each block of the output buffer, wherein in the updating, the blocks of the output buffer to which the new postings are attached are overwritten to the blocks of the on-disk inverted index and the block of the output buffer storing the postings of the input term which is present in only the in-memory inverted index is written in a rear part of the on-disk inverted index. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer-readable recording medium having stored thereon a program for executing a method for updating an inverted index of a flash solid state disk (SSD), which, when executed by a processor, performs a method comprising:
-
wherein an on-disk inverted index of the flash SSD is constituted by terms and a posting list which is a list of postings corresponding to the respective terms, at least one block which has a predetermined size and is used for containing postings is provided in each term, and wherein an in-memory inverted index of a memory is constituted by input terms and postings corresponding to the respective input terms, storing postings of an input term that is present in only an in-memory inverted index in a block of an output buffer of the memory and reading out postings of a last block of a posting list of each term to be updated from the on-disk inverted index to thereby storing the read-out postings in a corresponding block of an input buffer of the memory, by scanning the on-disk inverted index and the in-memory inverted index; moving the postings stored in the corresponding block of the input buffer to a corresponding block of the output buffer and attaching new postings of each term in the in-memory inverted index to the corresponding block of the output buffer; and updating the on-disk inverted index by using the postings of each block of the output buffer, wherein in the updating, the blocks of the output buffer to which the new postings are attached are overwritten to the blocks of the on-disk inverted index and the block of the output buffer storing the postings of the input term which is present in only the in-memory inverted index is written in a rear part of the on-disk inverted index. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification