Public Member Functions
ibis::part::vault Class Reference

To read variables in certain order. More...

#include <part.h>

Inheritance diagram for ibis::part::vault:
ibis::part::barrel ibis::math::barrel

List of all members.

Public Member Functions

virtual long open (const ibis::part *t=0)
 Open all data files.
virtual long read ()
 Read the values at the current position.
virtual long seek (uint32_t pos)
 Move the logical position.
long seek (double val)
 Move to the first position that value(var) >= val.
uint32_t tellReal () const
 Tell the physical record number.
 vault (const ibis::roster &r)

Detailed Description

To read variables in certain order.

A version of barrel that keys on an index array (i.e., a roster).


Member Function Documentation

long ibis::part::vault::open ( const ibis::part t = 0) [virtual]

Open all data files.

The function valut::open different from barrel::open in that it opens the .srt file for the first variable.

Reimplemented from ibis::part::barrel.

References ibis::part::currentDataDir(), ibis::part::getColumn(), ibis::gVerbose, ibis::fileManager::instance(), ibis::column::name(), ibis::part::name(), and UnixOpen.

long ibis::part::vault::read ( ) [virtual]

Read the values at the current position.

Read the records indicated by position.

Treat position as the logical position, the physical position is _roster[position].

Reimplemented from ibis::part::barrel.

References ibis::CATEGORY, ibis::DOUBLE, ibis::FLOAT, ibis::INT, ibis::part::name(), ibis::OID, ibis::TEXT, ibis::TYPESTRING, and ibis::UINT.

long ibis::part::vault::seek ( uint32_t  pos) [virtual]

Move the logical position.

Change the logical position of the files.

Reimplemented from ibis::part::barrel.

uint32_t ibis::part::vault::tellReal ( ) const

Tell the physical record number.

User may called _roster[tell()] to avoid the overhead of calling this function.


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

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