summaryrefslogtreecommitdiffstats
path: root/tests/internal_level_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Continued developmentDouglas B. Rumbaugh2024-12-221-95/+0
|
* Interface update (#5)Douglas B. Rumbaugh2024-12-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Query Interface Adjustments/Refactoring Began the process of adjusting the query interface (and also the shard interface, to a lesser degree) to better accommodate the user. In particular the following changes have been made, 1. The number of necessary template arguments for the query type has been drastically reduced, while also removing the void pointers and manual delete functions from the interface. This was accomplished by requiring many of the sub-types associated with a query (parameters, etc.) to be nested inside the main query class, and by forcing the SHARD type to expose its associated record type. 2. User-defined query return types are now supported. Queries no longer are required to return strictly sets of records. Instead, the query now has LocalResultType and ResultType template parameters (which can be defaulted using a typedef in the Query type itself), allowing much more flexibility. Note that, at least for the short term, the LocalResultType must still expose the same is_deleted/is_tombstone interface as a Wrapped<R> used to, as this is currently needed for delete filtering. A better approach to this is, hopefully, forthcoming. 3. Updated the ISAMTree.h shard and rangequery.h query to use the new interfaces, and adjusted the associated unit tests as well. 4. Dropped the unnecessary "get_data()" function from the ShardInterface concept. 5. Dropped the need to specify a record type in the ShardInterface concept. This is now handled using a required Shard::RECORD member of the Shard class itself, which should expose the name of the record type. * Updates to framework to support new Query/Shard interfaces Pretty extensive adjustments to the framework, particularly to the templates themselves, along with some type-renaming work, to support the new query and shard interfaces. Adjusted the external query interface to take an rvalue reference, rather than a pointer, to the query parameters. * Removed framework-level delete filtering This was causing some issues with the new query interface, and should probably be reworked anyway, so I'm temporarily (TM) removing the feature. * Updated benchmarks + remaining code for new interface
* Fully realized shard concept interfaceDouglas Rumbaugh2024-02-071-1/+1
|
* Initial pass at unit test refactoringDouglas Rumbaugh2024-01-121-1/+1
| | | | | | Restructured unit tests to be a bit more modular. I have some further plans to expand on this, particular for the query tests (including both shard and framework level test functions that can be injected at will).
* InternalLevel update and testsDouglas Rumbaugh2024-01-111-4/+4
| | | | | Plus some assorted fixes for move semantics stuff in BufferView that accompanied these changes.
* Refactoring: corrected a number of names and added more commentsDouglas Rumbaugh2023-12-131-2/+2
|
* Comment and License updatesDouglas Rumbaugh2023-11-071-1/+1
|
* Switched default DE test case over to ISAMTreeDouglas Rumbaugh2023-11-071-6/+7
|
* Re-structuring Project + scheduling updatesDouglas Rumbaugh2023-09-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big one--probably should have split it apart, but I'm feeling lazy this morning. * Organized the mess of header files in include/framework by splitting them out into their own subdirectories, and renaming a few files to remove redundancies introduced by the directory structure. * Introduced a new framework/ShardRequirements.h header file for simpler shard development. This header simply contains the necessary includes from framework/* for creating shard files. This should help to remove structural dependencies from the framework file structure and shards, as well as centralizing the necessary framework files to make shard development easier. * Created a (currently dummy) SchedulerInterface, and make the scheduler implementation a template parameter of the dynamic extension for easier testing of various scheduling policies. There's still more work to be done to fully integrate the scheduler (queries, multiple buffers), but some more of the necessary framework code for this has been added as well. * Adjusted the Task interface setup for the scheduler. The task structures have been removed from ExtensionStructure and placed in their own header file. Additionally, I started experimenting with using std::variant, as opposed to inheritence, to implement subtype polymorphism on the Merge and Query tasks. The scheduler now has a general task queue that contains both, and std::variant, std::visit, and std::get are used to manipulate them without virtual functions. * Removed Alex.h, as it can't build anyway. There's a branch out there containing the Alex implementation stripped of the C++20 stuff. So there's no need to keep it here.
* General bugfixesDouglas Rumbaugh2023-09-181-3/+1
|
* Began re-architecting the project for concurrency supportDouglas Rumbaugh2023-09-131-2/+2
| | | | | The project is now in a state where it builds, but it probably has a lot of bugs still.
* Build changes and interface cleanupDouglas B. Rumbaugh2023-06-091-3/+3
| | | | | | | | | | Renamed the get_record_cnt() functions to get_record_count() for consistency, dropped references to SSIs, and added openmp build flags for PGM related targets. Also adjusted dynamic_extension_tests.inc to fail when an erase fails during the static structure testing as part of debugging a delete cancellation problem under leveling.
* Adjusted the way that Wrapping records works to clean up interfacesDouglas Rumbaugh2023-05-291-5/+5
|
* Tests and bugfixes for frameworkDouglas Rumbaugh2023-05-291-14/+19
|
* Started implementing shard interface (not finished yet)Douglas Rumbaugh2023-05-171-5/+5
|
* Removed unncessary tagging paramter from shards and levelsDouglas Rumbaugh2023-05-171-4/+4
|
* Record format generalizationDouglas Rumbaugh2023-05-151-9/+9
| | | | | Currently, tombstone counting is bugged. But the rest of it appears to be working.
* Ported over IRS with unit testsDouglas Rumbaugh2023-05-091-4/+4
|
* Header updateDouglas Rumbaugh2023-05-091-0/+11
|
* Internal Level and PagedFile Unit TestsDouglas Rumbaugh2023-05-091-0/+80