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

Extent and Segment Example #38

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jackpalaia
Copy link

@jackpalaia jackpalaia commented Dec 2, 2022

Jack Palaia
GTID: 903487822

This example features 3 classes, DiskBlock, Extent, and Segment. Extents are made of contiguous sets of DiskBlocks, and Segments are made of Extents. The Segment class has an add_data function that allows adding strings to the db. It adds to the current extent, and if the current extent is full it will create a new extent using exponential growth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant