Lucene++ - a full-featured, c++ search engine
API Documentation


Data Structures | Namespaces
ByteBlockPool.h File Reference
#include "LuceneObject.h"
+ Include dependency graph for ByteBlockPool.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Lucene::ByteBlockPool
 Class that Posting and PostingVector use to write byte streams into shared fixed-size byte[] arrays. The idea is to allocate slices of increasing lengths. For example, the first slice is 5 bytes, the next slice is 14, etc. We start by writing our bytes into the first 5 bytes. When we hit the end of the slice, we allocate the next slice and then write the address of the new slice into the last 4 bytes of the previous slice (the "forwarding address"). More...
 
class  Lucene::ByteBlockPoolAllocatorBase
 

Namespaces

 Lucene
 

clucene.sourceforge.net