Inheritance diagram for append_file_i:
Just creating a record doesn't ensure that it appears at the end of the file; when new pages are allocated, they could be in extents in the middle of the file, and unused slots in pages in the middle of the file can be scavenged for create_rec.
If you want to ensure that the records are appended to a file, use this.
Definition at line 608 of file scan.h.
Public Member Functions | |
NORET | append_file_i (const stid_t &stid) |
Construct an append_file_i for a given file. | |
rc_t | next (pin_i *&pin_ptr, smsize_t start_offset, bool &eof) |
Place-holder method. Returns error. | |
rc_t | create_rec (const vec_t &hdr, smsize_t len_hint, const vec_t &data, rid_t &rid) |
Append a new record to the end of the file. |
NORET append_file_i::append_file_i | ( | const stid_t & | stid | ) |
Construct an append_file_i for a given file.
[in] | stid | ID of the file in which to create records. |
Place-holder method. Returns error.
You cannot scan with an append_file_i.
Reimplemented from scan_file_i.