Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTreeLeaf delete and insert methods #31

Open
yunshengtw opened this issue Dec 10, 2017 · 0 comments
Open

BTreeLeaf delete and insert methods #31

yunshengtw opened this issue Dec 10, 2017 · 0 comments
Labels

Comments

@yunshengtw
Copy link
Contributor

yunshengtw commented Dec 10, 2017

Hi,

I'm wondering why delete and insert methods are restricted to be called only once, immediately after construction? As the other part of the description as well as the method naming seem to me that chances are these methods might be called multiple times.

/**
* Inserts a new B-tree leaf record having the specified data record ID and
* the previously-specified search key. This method can only be called once,
* immediately after construction.
*
* @param dataRecordId
* the data record ID of the new record
* @return the directory entry of the newly-split page or null of there is
* no split
*/
public DirEntry insert(RecordId dataRecordId) {

/**
* Deletes the B-tree leaf record having the specified data record ID and
* the previously-specified search key. This method can only be called once,
* immediately after construction.
*
* @param dataRecordId
* the data record ID whose record is to be deleted
*/
public void delete(RecordId dataRecordId) {

@SLMT SLMT added the question label Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants