aitools::invertedindex::PostlistBuilder Class Reference

#include <PostlistBuilder.hpp>

List of all members.

Public Types

typedef boost::shared_ptr
< PostlistBuilder
SharedPointer

Public Member Functions

 PostlistBuilder ()
 ~PostlistBuilder ()
void append (const ByteBuffer &value) throw (std::runtime_error)
Iterator::SharedPointer build ()
void clear ()
bool empty () const
size_t length () const
void set_checksum (uint16_t checksum)

Private Types

typedef std::vector< ByteBufferValueVector
typedef Iterator::SizeVector SizeVector
typedef Iterator::Header Header

Private Member Functions

void swap_out_values_ () throw (std::runtime_error)
bool has_page_file_ () const

Private Attributes

Header header_
ValueVector values_
SizeVectorvsizes_
size_t memory_
FILE * page_

Detailed Description

A class to build postlists by appending entries.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
PostlistBuilder.hpp,v 1.22 2010/05/11 23:41:08 trenkman Exp

Definition at line 25 of file PostlistBuilder.hpp.


Member Typedef Documentation

Definition at line 35 of file PostlistBuilder.hpp.

Definition at line 29 of file PostlistBuilder.hpp.

Definition at line 34 of file PostlistBuilder.hpp.

Definition at line 33 of file PostlistBuilder.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::PostlistBuilder::PostlistBuilder (  ) 

The explicit constructor.

Definition at line 8 of file PostlistBuilder.cpp.

aitools::invertedindex::PostlistBuilder::~PostlistBuilder (  ) 

The destructor.

Definition at line 14 of file PostlistBuilder.cpp.

References aitools::util::fclose(), has_page_file_(), page_, and vsizes_.

Here is the call graph for this function:


Member Function Documentation

void aitools::invertedindex::PostlistBuilder::append ( const ByteBuffer value  )  throw (std::runtime_error)
Iterator::SharedPointer aitools::invertedindex::PostlistBuilder::build (  ) 
void aitools::invertedindex::PostlistBuilder::clear (  ) 

Definition at line 87 of file PostlistBuilder.cpp.

References aitools::util::fclose(), has_page_file_(), header_, memory_, page_, values_, and vsizes_.

Referenced by build().

Here is the call graph for this function:

Here is the caller graph for this function:

bool aitools::invertedindex::PostlistBuilder::empty (  )  const

Definition at line 101 of file PostlistBuilder.cpp.

References header_, and aitools::invertedindex::Iterator::Header::value_count.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

bool aitools::invertedindex::PostlistBuilder::has_page_file_ (  )  const [private]

Definition at line 132 of file PostlistBuilder.cpp.

References page_.

Referenced by build(), clear(), and ~PostlistBuilder().

Here is the caller graph for this function:

size_t aitools::invertedindex::PostlistBuilder::length (  )  const

Definition at line 107 of file PostlistBuilder.cpp.

References header_, and aitools::invertedindex::Iterator::Header::value_count.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

void aitools::invertedindex::PostlistBuilder::set_checksum ( uint16_t  checksum  ) 
void aitools::invertedindex::PostlistBuilder::swap_out_values_ (  )  throw (std::runtime_error) [private]

Definition at line 119 of file PostlistBuilder.cpp.

References aitools::util::fwrite(), memory_, page_, aitools::util::tmpfile(), and values_.

Here is the call graph for this function:


Member Data Documentation

Definition at line 70 of file PostlistBuilder.hpp.

Referenced by build(), clear(), empty(), length(), and set_checksum().

Definition at line 73 of file PostlistBuilder.hpp.

Referenced by clear(), and swap_out_values_().

Definition at line 74 of file PostlistBuilder.hpp.

Referenced by build(), clear(), has_page_file_(), swap_out_values_(), and ~PostlistBuilder().

Definition at line 71 of file PostlistBuilder.hpp.

Referenced by build(), clear(), and swap_out_values_().

Definition at line 72 of file PostlistBuilder.hpp.

Referenced by build(), clear(), and ~PostlistBuilder().


The documentation for this class was generated from the following files:
Generated on Wed May 30 15:07:34 2012 by  doxygen 1.6.3