TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 133

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 133', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | pointers to each one temp_zip_pointer so that we can copy the ZIP codes from the keys as we select each record. Once that bookkeeping is out of the way we can copy the ZIP code for the current record into the ZIP block via the temp_zip_pointer pointer array and increment which pointer in the array will be used next current_zip_entry . Now we re at the end of the processing for one record in a processing batch. Once all the records in the batch have been processed we fall off the end of the inner loop. At this point we can add the number of items we have read in this batch to total_items_read. If we have read less than a full batch we must have reached the end of the file so we are finished with this phase of processing. Getting Ready to Sort Now that we have all the information needed to sort the keys so that we will be able to read the records in ZIP code order on the second pass. However the sort function Megasort Figure requires that same information in a different form so we have some preparation to do before we can call it. The Megasort function mail Figure codelist Looking at the parameters for this function we see that the data to be sorted are described by an array of string pointers unsigned char PtrArray whereas what we have is a number of blocks of ZIP codes. The record numbers which the sort function will rearrange according to the order of the ZIP codes must be passed as an array of unsigned values unsigned RecNums rather than as the bitmap in which they are stored by our search function. To set up the first argument to Megasort we need to produce an array of pointers to each of the ZIP codes we have stored in the blocks which we do in the portion of Figure between the function call that reports the Pass 1 time and the call to the Megasort function. We start by allocating a block of ZIP code pointers zip_pointer that can hold all the pointers we will need items_found . Then for each block of ZIP codes we .

TÀI LIỆU MỚI ĐĂNG
31    225    0    28-03-2024
19    219    0    28-03-2024
20    241    2    28-03-2024
46    179    0    28-03-2024
8    162    0    28-03-2024
42    171    1    28-03-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.