mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
* implemented distinct
* implemented distinct
* uses first cut of a buffer pool, and extendible hashing with thresholded spill to disk
* tests
* cleaned up some stuff around query plan output to make developing tooling easier
* added optimization to call PQL Distinct()
* fixed test
* fix for passing wrong index name in orchestrator
* back out change to DistinctTimestamp
* fix other instance of wrong table name being passed
* use full index name instead of abbreviated one for translation. sigh.
* removed some unused code
Co-authored-by: Matthew Jaffee <jaffee@pilosa.com>
(cherry picked from commit f030d58d95)
21 lines
425 B
Go
21 lines
425 B
Go
package bufferpool
|
|
|
|
// DiskManager is responsible for interacting with disk
|
|
type DiskManager interface {
|
|
// reads a page from the disk
|
|
ReadPage(PageID) (*Page, error)
|
|
// writes a page to the disk
|
|
WritePage(*Page) error
|
|
|
|
// allocates a page
|
|
AllocatePage() (PageID, error)
|
|
|
|
// deallocates a page
|
|
DeallocatePage(PageID) error
|
|
|
|
// returns on disk file size
|
|
FileSize() int64
|
|
|
|
// closes and does any clean up
|
|
Close()
|
|
}
|