Public Member Functions
ibis::bundle1 Class Reference

The bundle with only one component. More...

#include <bundle.h>

Inheritance diagram for ibis::bundle1:
ibis::bundle

List of all members.

Public Member Functions

 bundle1 (const ibis::query &q)
 Constructor.
 bundle1 (const ibis::query &q, const ibis::bitvector &hits)
 Constructor. It creates a bundle using the rows selected by hits.
 bundle1 (const ibis::part &tbl, const ibis::selectClause &sel)
 Constructor. It creates the bundle using all rows of tbl.
virtual void * columnArray (uint32_t j) const
 Return the pointer to the underlying array used to store the jth column of the bundle.
virtual ibis::TYPE_T columnType (uint32_t j) const
 Return the type used to store the values of the jth column of the bundle.
virtual double getDouble (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a 64-bit floating-point value.
virtual float getFloat (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a 32-bit floating-point value.
virtual int32_t getInt (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a 32-bit integer.
virtual int64_t getLong (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a 64-bit integer.
virtual std::string getString (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a string.
virtual uint32_t getUInt (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a 32-bit unsigned integer.
virtual uint64_t getULong (uint32_t, uint32_t) const
 Retrieve the value of i-th row j-th column as a 64-bit unsigned integer.
virtual void print (std::ostream &out) const
 Print the bundle values to the specified output stream.
virtual void printAll (std::ostream &out) const
 Print the bundle values along with the RIDs.
virtual void reorder (const char *, int direction)
 Reorder the values.
virtual uint32_t size () const
 Return the number of bundles.
virtual long truncate (const char *, int direction, uint32_t keep)
 Truncate the list of bundle based on specified keys.
virtual long truncate (uint32_t)
 This single-argument version keep the first few records.
virtual long truncate (uint32_t, uint32_t)
 This two-argument version keeps a few records starting at a user-specified row number.
virtual uint32_t width () const
 Return the width of the bundles.
virtual void write (const ibis::query &) const
 Write the bundle to the directory for the query q.
virtual ~bundle1 ()
 Destructor.

Detailed Description

The bundle with only one component.


Constructor & Destructor Documentation

ibis::bundle1::bundle1 ( const ibis::query q) [explicit]

Member Function Documentation

virtual void* ibis::bundle1::columnArray ( uint32_t  ) const [inline, virtual]

Return the pointer to the underlying array used to store the jth column of the bundle.

Reimplemented from ibis::bundle.

virtual ibis::TYPE_T ibis::bundle1::columnType ( uint32_t  ) const [inline, virtual]

Return the type used to store the values of the jth column of the bundle.

Reimplemented from ibis::bundle.

References ibis::UNKNOWN_TYPE.

double ibis::bundle1::getDouble ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a 64-bit floating-point value.

Return the maximal value defined in the class numeric_limits if either i or j is out of bounds.

Reimplemented from ibis::bundle.

float ibis::bundle1::getFloat ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a 32-bit floating-point value.

Return the maximal value defined in the class numeric_limits if wither i or j is out of bounds.

Reimplemented from ibis::bundle.

int32_t ibis::bundle1::getInt ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a 32-bit integer.

Return the maximal value defined in the class numeric_limits if either i or j is out of bounds.

Reimplemented from ibis::bundle.

int64_t ibis::bundle1::getLong ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a 64-bit integer.

Return the maximal value defined in the class numeric_limits if either i or j is out of bounds.

Reimplemented from ibis::bundle.

std::string ibis::bundle1::getString ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a string.

Returns an empty string if either i or j is out of bounds, which can not be distinguished from an actual empty string. This function converts a value to its string representation through std::ostringstream.

Reimplemented from ibis::bundle.

uint32_t ibis::bundle1::getUInt ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a 32-bit unsigned integer.

Return the maximal value defined in the class numeric_limits if either i or j is out of bounds.

Reimplemented from ibis::bundle.

uint64_t ibis::bundle1::getULong ( uint32_t  i,
uint32_t  j 
) const [virtual]

Retrieve the value of i-th row j-th column as a 64-bit unsigned integer.

Return the maximal value defined in the class numeric_limits if either i or j is out of bounds.

Reimplemented from ibis::bundle.

virtual void ibis::bundle1::reorder ( const char *  ,
int  direction 
) [inline, virtual]

Reorder the values.

Since there is only one column in the bundle, the only valid name that can be passed in is the name of the sole column. Because the bundle is already sorted according to this column, there is nothing to do expect to reverse the order of the values based on the second argument.

Implements ibis::bundle.

long ibis::bundle1::truncate ( uint32_t  keep,
uint32_t  start 
) [virtual]

This two-argument version keeps a few records starting at a user-specified row number.

Note that the row number starts with 0, i.e., the first row has the row number 0.

Implements ibis::bundle.


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