Efficient buffered reading with a plug-in for input buffer size determination
First Claim
Patent Images
1. A method of buffered reading of data, the method comprising:
- receiving a read request from a requestor for data by a buffered reader within a data processing system;
in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer;
reading by the buffered reader the amount of the data indicated by the predetermined value;
placing by the buffered reader the data read into the memory buffer; and
returning the data placed in the memory buffer to the requestor;
wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term.
8 Assignments
0 Petitions
Accused Products
Abstract
A method of buffered reading of data is provided. A read request for data is received by a buffered reader, and in response to the read request, a main memory input buffer is partially filled with the data by the buffered reader to a predetermined amount that is less than a fill capacity of the input buffer. Corresponding computer system and program products are also provided.
-
Citations
39 Claims
-
1. A method of buffered reading of data, the method comprising:
-
receiving a read request from a requestor for data by a buffered reader within a data processing system; in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer; reading by the buffered reader the amount of the data indicated by the predetermined value; placing by the buffered reader the data read into the memory buffer; and returning the data placed in the memory buffer to the requestor; wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13)
-
-
9. A method of buffered reading of data, the method comprising:
-
receiving a read request from a requestor for data by a buffered reader within a data processing system; in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer, wherein the obtaining comprises calling by the buffered reader an object that returns the predetermined value; reading by the buffered reader the amount of the data indicated by the predetermined value; placing by the buffered reader the data read into the memory buffer; returning the data placed in the memory buffer to the requestor; wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term; and disassociating the object from the buffered reader, wherein the disassociating comprises automatically disassociating the object from the buffered reader if the predetermined amount returned by the object is invalid.
-
-
14. A computer system for buffered reading of data, comprising:
-
a memory; and a processor in communication with the memory to perform a method, the method comprising; receiving a read request from a requestor for data by a buffered reader; in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer; reading by the buffered reader the amount of the data indicated by the predetermined value; placing by the buffered reader the data read into the memory buffer; and returning the data placed in the memory buffer to the requestor; wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26)
-
-
22. A computer system for buffered reading of data, comprising:
-
a memory; and a processor in communication with the memory to perform a method, the method comprising; receiving a read request from a requestor for data by a buffered reader within a data processing system; in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer, wherein the obtaining comprises calling by the buffered reader an object that returns the predetermined value reading by the buffered reader the amount of the data indicated by the predetermined value; placing by the buffered reader the data read into the memory buffer; returning the data placed in the memory buffer to the requestor; disassociating the object from the buffered reader; wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term; and disassociating the object from the buffered reader, wherein the disassociating comprises automatically disassociating the object from the buffered reader if the predetermined amount returned by the object is invalid.
-
-
27. A program product for buffered reading of data, the program product comprising:
-
a physical storage medium readable by a processor and storing instructions for execution by the processor for performing a method, the method comprising; receiving a read request from a requestor for data by a buffered reader; and in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer; reading by the buffered reader the amount of the data indicated by the predetermined value; placing by the buffered reader the data read into the memory buffer; and returning the data placed in the memory buffer to the requestor; wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term. - View Dependent Claims (28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39)
-
-
35. A program product for buffered reading of data, the program product comprising:
a physical storage medium readable by a processor and storing instructions for execution by the processor for performing a method, the method comprising; receiving a read request from a requestor for data by a buffered reader within a data processing system; in response to the read request, obtaining a predetermined value for an amount of the data to be read and placed in a memory buffer, wherein the obtaining comprises calling by the buffered reader an object that returns the predetermined value; reading by the buffered reader the amount of the data indicated by the predetermined value; placing by the buffered reader the data read into the memory buffer; returning the data placed in the memory buffer to the requestor; wherein the read request is for a posting list when searching an inverted index for a search term, and wherein the posting list is associated with the search term; wherein the obtaining comprises calling by the buffered reader an object that returns the predetermined value; and disassociating the object from the buffered reader, wherein the disassociating comprises automatically disassociating the object from the buffered reader if the predetermined amount returned by the object invalid.
Specification