Are there any good resources or books for spillable data structures, that is, say, a queue?
When storing large objects it could fill up all of memory, but if you can ke
There is the Buffer Tree (PDF, 0.6 MB):
"... developed an efficient external priority queue and batched dynamic versions of the (one-dimensional) range tree and the segment tree."
and
"... allow us to design efficient external-memory algorithms from known internal algorithms in a straightforward way, such that all the I/O specific parts of the algorithms are hidden in the data structures."
It is the mentioned as part of a broader treatment of the subject in the freely available online book "Algorithms and Data Structures for External Memory" by Jeffrey Scott Vitter (PDF, 1 MB).