Browse Prior Art Database

Method and System for Executing High Performance Record Read Operation from a Byte Stream

IP.com Disclosure Number: IPCOM000235454D
Publication Date: 2014-Feb-28
Document File: 1 page(s) / 132K

Publishing Venue

The IP.com Prior Art Database

Abstract

A method and system is disclosed for executing high performance record read operation from a byte stream. The method and system avoids use of two read operations for reading a record from the byte stream and ensures that the reading does not cross an end of a file.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 76% of the total text.

Page 01 of 1

Method and System for Executing High Performance Record Read Operation from a Byte Stream

Disclosed is a method and system for executing high performance record read operation from a byte stream.

The method and system performs a record read operation on byte stream files by performing n+1 reads rather than 2n reads that is performed in conventional techniques. The advantage of performing n+1 reads is that same amount of data is read by half number of read when n is very large. In order to read the amount of data and ensure that the reading does not cross the end of a file for security and data privacy reasons, a trailer record is introduced to the end of the file. The trailer record is either as large as the prefix, or is even larger than the prefix.

The method includes execution of an algorithm which initially reads the first prefix of the first record. By reading the first prefix, the algorithm identifies number of bytes in the first record. Thereafter, a subsequent read operation is executed which reads a sum of the number of bytes in the first record and the number of bytes in the first prefix. For example, if the algorithm reads 72 bytes in the first record and there are 4 bytes in the first prefix, then the subsequent read operation reads 76 bytes. The algorithm returns 72 bytes back to the application and retains a prefix_2 for a second record in the memory. When a request is received for reading the second record, then the algorithm refers to the prefix_...