Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

InvFPIndexMerge Class Reference

#include <InvFPIndexMerge.hpp>

List of all members.

Public Methods

 InvFPIndexMerge (char *buffer,long size,long maxfilesize=2100000000)
 constructor. vector : a list of files to merge char* : name prefix of created files long : the maximum size the index can be.

 InvFPIndexMerge (long buffersize=64000000,long maxfilesize=2100000000)
 ~InvFPIndexMerge ()
int merge (vector< char *> *tf,char *prefix)
 output of this merge operation and the lookup table for the merged index returns the number of index files this merge created.

void setMaxFileSize (long size)
char* setBuffer (char *buffer,long size)
int hierMerge (vector< char *> *files,int level)
 recursive hierarchical merge calls mergeFiles() when intermediate files are necessary base case if finalMerge().

int mergeFiles (vector< char *> *files,vector< char *> *intmed,int level)
 merge these files and put the results into the intmed list.

int finalMerge (vector< char *> *files)
 do the final merge and write the lookup table.


Constructor & Destructor Documentation

InvFPIndexMerge::InvFPIndexMerge ( char * buffer,
long size,
long maxfilesize = 2100000000 )
 

constructor. vector : a list of files to merge char* : name prefix of created files long : the maximum size the index can be.

InvFPIndexMerge::InvFPIndexMerge ( long buffersize = 64000000,
long maxfilesize = 2100000000 )
 

InvFPIndexMerge::~InvFPIndexMerge ( )
 


Member Function Documentation

int InvFPIndexMerge::finalMerge ( vector< char *> * files )
 

do the final merge and write the lookup table.

int InvFPIndexMerge::hierMerge ( vector< char *> * files,
int level )
 

recursive hierarchical merge calls mergeFiles() when intermediate files are necessary base case if finalMerge().

int InvFPIndexMerge::merge ( vector< char *> * tf,
char * prefix )
 

output of this merge operation and the lookup table for the merged index returns the number of index files this merge created.

int InvFPIndexMerge::mergeFiles ( vector< char *> * files,
vector< char *> * intmed,
int level )
 

merge these files and put the results into the intmed list.

char * InvFPIndexMerge::setBuffer ( char * buf,
long size )
 

void InvFPIndexMerge::setMaxFileSize ( long size )
 


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:22:50 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000