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

IndriBuildIndex.cpp File Reference

#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include "indri/Parameters.hpp"
#include "indri/IndexEnvironment.hpp"
#include <time.h>
#include "indri/Path.hpp"
#include "indri/ConflationPattern.hpp"
#include "Exception.hpp"
#include "indri/FileTreeIterator.hpp"
#include <vector>
#include <map>
#include "indri/IndriTimer.hpp"
#include "indri/QueryEnvironment.hpp"
#include "indri/Thread.hpp"
#include "indri/SequentialWriteBuffer.hpp"
#include <math.h>
#include "indri/Repository.hpp"
#include "indri/CompressedCollection.hpp"
#include "indri/ScopedLock.hpp"
#include "indri/DirectoryIterator.hpp"

Classes

class  StatusMonitor

Functions

bool _recoverRepository (const std::string &path)
void buildindex_start_time ()
void buildindex_print_status (const char *status, int count)
void buildindex_print_status (const char *status, int count, const char *status2, INT64 count2)
void buildindex_flush_status ()
void buildindex_print_event (const char *event)
void buildindex_print_event (std::string event)
std::string downcase_string (const std::string &str)
void downcase_string_vector (std::vector< std::string > &vec)
bool copy_parameters_to_string_vector (std::vector< std::string > &vec, indri::api::Parameters p, const std::string &parameterName, const std::string *subName=0)
std::vector< std::string > findConflations (indri::parse::FileClassEnvironmentFactory::Specification *spec, std::string &name)
bool addNew (std::vector< std::string > &orig, std::vector< std::string > &vec, string &name, std::string &specName, const char *msg)
bool augmentSpec (indri::parse::FileClassEnvironmentFactory::Specification *spec, std::vector< std::string > &fields, std::vector< std::string > &metadata, std::vector< std::string > &metadataForward, std::vector< std::string > &metadataBackward)
void process_numeric_fields (indri::api::Parameters parameters, indri::api::IndexEnvironment &env)
void process_ordinal_fields (indri::api::Parameters parameters, indri::api::IndexEnvironment &env)
void process_parental_fields (indri::api::Parameters parameters, indri::api::IndexEnvironment &env)
void require_parameter (const char *name, indri::api::Parameters &p)
int main (int argc, char *argv[])

Variables

indri::utility::IndriTimer g_timer

Function Documentation

bool _recoverRepository const std::string &  path  )  [static]
 

bool addNew std::vector< std::string > &  orig,
std::vector< std::string > &  vec,
string &  name,
std::string &  specName,
const char *  msg
[static]
 

Add a string to a vector if not already present.

Returns:
true if the string was added.

bool augmentSpec indri::parse::FileClassEnvironmentFactory::Specification spec,
std::vector< std::string > &  fields,
std::vector< std::string > &  metadata,
std::vector< std::string > &  metadataForward,
std::vector< std::string > &  metadataBackward
[static]
 

Add field names to index or metadata for an existing file class specification.

void buildindex_flush_status  )  [static]
 

void buildindex_print_event std::string  event  )  [static]
 

void buildindex_print_event const char *  event  )  [static]
 

void buildindex_print_status const char *  status,
int  count,
const char *  status2,
INT64  count2
[static]
 

void buildindex_print_status const char *  status,
int  count
[static]
 

void buildindex_start_time  )  [static]
 

bool copy_parameters_to_string_vector std::vector< std::string > &  vec,
indri::api::Parameters  p,
const std::string &  parameterName,
const std::string *  subName = 0
[static]
 

std::string downcase_string const std::string &  str  )  [static]
 

void downcase_string_vector std::vector< std::string > &  vec  )  [static]
 

std::vector<std::string> findConflations indri::parse::FileClassEnvironmentFactory::Specification spec,
std::string &  name
[static]
 

Given a Specification and a field name, return a vector containing all of the field names that conflate to that name as well as the original name.

Parameters:
spec The indri::parse::FileClassEnvironmentFactory::Specification to inspect.
name The field name to look for.
Returns:
a vector containing all of the field names that conflate to that name as well as the original name.

int main int  argc,
char *  argv[]
 

void process_numeric_fields indri::api::Parameters  parameters,
indri::api::IndexEnvironment env
[static]
 

void process_ordinal_fields indri::api::Parameters  parameters,
indri::api::IndexEnvironment env
[static]
 

void process_parental_fields indri::api::Parameters  parameters,
indri::api::IndexEnvironment env
[static]
 

void require_parameter const char *  name,
indri::api::Parameters p
 


Variable Documentation

indri::utility::IndriTimer g_timer [static]
 


Generated on Tue Jun 15 11:02:57 2010 for Lemur by doxygen 1.3.4