Public Member Functions | List of all members
ibis::index::bitmapReader Class Reference

A simple container to hold the function pointer given by user for reading the serialized bitmaps. More...

#include <index.h>

Public Member Functions

 bitmapReader (void *ctx, FastBitReadBitmaps rd)
 Constructor.
 
int read (uint64_t b, uint64_t c, ibis::fileManager::buffer< uint32_t > &buf)
 The main function to read the serialized bitmaps. More...
 
int read (uint64_t b, uint64_t c, ibis::array_t< uint32_t > &buf)
 The main function to read the serialized bitmaps. More...
 

Detailed Description

A simple container to hold the function pointer given by user for reading the serialized bitmaps.

Member Function Documentation

int ibis::index::bitmapReader::read ( uint64_t  b,
uint64_t  c,
ibis::fileManager::buffer< uint32_t > &  buf 
)
inline

The main function to read the serialized bitmaps.

It assumes the bitmaps have been serialized and packed into a 1-D array of type uint32_t. This function intends to read c elements start with b. It uses the buffer buf to hold the in-memory data so that the memory can be resized as needed and tracked by the file manager.

References ibis::fileManager::buffer< T >::address(), ibis::fileManager::buffer< T >::resize(), and ibis::fileManager::buffer< T >::size().

int ibis::index::bitmapReader::read ( uint64_t  b,
uint64_t  c,
ibis::array_t< uint32_t > &  buf 
)
inline

The main function to read the serialized bitmaps.

It assumes the bitmaps have been serialized and packed into a 1-D array of type uint32_t. This function intends to read c elements start with b. It uses the array buf to hold the in-memory data so that the memory can be resized as needed and tracked by the file manager.

References ibis::array_t< T >::resize(), and ibis::array_t< T >::size().


The documentation for this class was generated from the following file:

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive