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

indri::parse::OffsetAnnotationAnnotator Class Reference

#include <OffsetAnnotationAnnotator.hpp>

Inheritance diagram for indri::parse::OffsetAnnotationAnnotator:

indri::parse::Transformation indri::parse::ObjectHandler< _Type > List of all members.

Public Member Functions

 OffsetAnnotationAnnotator (Conflater *p_conflater)
 OffsetAnnotationAnnotator ()
 ~OffsetAnnotationAnnotator ()
void setTags (const char *docno, const std::vector< indri::parse::TagExtent * > &tagset)
void setConflater (Conflater *p_conflater)
void setHandler (ObjectHandler< indri::api::ParsedDocument > &handler)
void handle (indri::api::ParsedDocument *document)
void setHint (indri::parse::OffsetAnnotationIndexHint hintType)
void open (const std::string &offsetAnnotationsFile)
indri::api::ParsedDocumenttransform (indri::api::ParsedDocument *document)

Private Member Functions

const char * _getDocno (indri::api::ParsedDocument *document)
TagExtent_getTag (UINT64 id)
AttributeValuePair_getAttribute (UINT64 id)
bool _is_unique_id (UINT64 id, int line)
UINT64 parse_UINT64 (const char *str, int n)
void _cleanup ()
ReadAnnotationTag parseLine (char *readLine, int lineCounter)
void readAnnotationTags (const char *docno)
void convert_annotations (std::set< indri::parse::TagExtent * > *raw_tags, std::set< indri::parse::TagExtent * > *converted_tags, indri::api::ParsedDocument *document)

Private Attributes

OffsetAnnotationIndexHint _indexHintType
std::string _offsetAnnotationsFile
int lastBufferAllocationSize
indri::utility::HashTable<
const char *, std::set<
TagExtent * > * > * 
_annotations
indri::utility::HashTable<
const char *, std::set<
TagExtent * > * > * 
_converted_annotations
indri::utility::HashTable<
UINT64, TagExtent * > * 
_tag_id_map
indri::utility::HashTable<
UINT64, AttributeValuePair * > * 
_attribute_id_map
std::vector< char * > * _buffers_allocated
bool _first_open
ObjectHandler< indri::api::ParsedDocument > * _handler
Conflater_p_conflater
std::ifstream annotationFile
int offsetAnnotationFileLine
ReadAnnotationTag lastReadTag

Constructor & Destructor Documentation

indri::parse::OffsetAnnotationAnnotator::OffsetAnnotationAnnotator Conflater p_conflater  ) 
 

Construction / Destruction *

indri::parse::OffsetAnnotationAnnotator::OffsetAnnotationAnnotator  ) 
 

indri::parse::OffsetAnnotationAnnotator::~OffsetAnnotationAnnotator  ) 
 


Member Function Documentation

void indri::parse::OffsetAnnotationAnnotator::_cleanup  )  [private]
 

indri::parse::AttributeValuePair * indri::parse::OffsetAnnotationAnnotator::_getAttribute UINT64  id  )  [private]
 

const char * indri::parse::OffsetAnnotationAnnotator::_getDocno indri::api::ParsedDocument document  )  [private]
 

indri::parse::TagExtent * indri::parse::OffsetAnnotationAnnotator::_getTag UINT64  id  )  [private]
 

bool indri::parse::OffsetAnnotationAnnotator::_is_unique_id UINT64  id,
int  line
[private]
 

void indri::parse::OffsetAnnotationAnnotator::convert_annotations std::set< indri::parse::TagExtent * > *  raw_tags,
std::set< indri::parse::TagExtent * > *  converted_tags,
indri::api::ParsedDocument document
[private]
 

void indri::parse::OffsetAnnotationAnnotator::handle indri::api::ParsedDocument document  )  [virtual]
 

Implements indri::parse::Transformation.

void indri::parse::OffsetAnnotationAnnotator::open const std::string &  offsetAnnotationsFile  ) 
 

UINT64 indri::parse::OffsetAnnotationAnnotator::parse_UINT64 const char *  str,
int  n
[private]
 

indri::parse::OffsetAnnotationAnnotator::ReadAnnotationTag indri::parse::OffsetAnnotationAnnotator::parseLine char *  readLine,
int  lineCounter
[private]
 

void indri::parse::OffsetAnnotationAnnotator::readAnnotationTags const char *  docno  )  [private]
 

void indri::parse::OffsetAnnotationAnnotator::setConflater Conflater p_conflater  ) 
 

void indri::parse::OffsetAnnotationAnnotator::setHandler ObjectHandler< indri::api::ParsedDocument > &  handler  )  [virtual]
 

Implements indri::parse::Transformation.

void indri::parse::OffsetAnnotationAnnotator::setHint indri::parse::OffsetAnnotationIndexHint  hintType  ) 
 

void indri::parse::OffsetAnnotationAnnotator::setTags const char *  docno,
const std::vector< indri::parse::TagExtent * > &  tagset
 

indri::api::ParsedDocument * indri::parse::OffsetAnnotationAnnotator::transform indri::api::ParsedDocument document  )  [virtual]
 

Implements indri::parse::Transformation.


Member Data Documentation

indri::utility::HashTable<const char *,std::set<TagExtent*>*>* indri::parse::OffsetAnnotationAnnotator::_annotations [private]
 

indri::utility::HashTable<UINT64,AttributeValuePair*>* indri::parse::OffsetAnnotationAnnotator::_attribute_id_map [private]
 

std::vector<char *>* indri::parse::OffsetAnnotationAnnotator::_buffers_allocated [private]
 

indri::utility::HashTable<const char *,std::set<TagExtent*>*>* indri::parse::OffsetAnnotationAnnotator::_converted_annotations [private]
 

bool indri::parse::OffsetAnnotationAnnotator::_first_open [private]
 

ObjectHandler<indri::api::ParsedDocument>* indri::parse::OffsetAnnotationAnnotator::_handler [private]
 

OffsetAnnotationIndexHint indri::parse::OffsetAnnotationAnnotator::_indexHintType [private]
 

std::string indri::parse::OffsetAnnotationAnnotator::_offsetAnnotationsFile [private]
 

Conflater* indri::parse::OffsetAnnotationAnnotator::_p_conflater [private]
 

indri::utility::HashTable<UINT64,TagExtent*>* indri::parse::OffsetAnnotationAnnotator::_tag_id_map [private]
 

std::ifstream indri::parse::OffsetAnnotationAnnotator::annotationFile [private]
 

int indri::parse::OffsetAnnotationAnnotator::lastBufferAllocationSize [private]
 

ReadAnnotationTag indri::parse::OffsetAnnotationAnnotator::lastReadTag [private]
 

int indri::parse::OffsetAnnotationAnnotator::offsetAnnotationFileLine [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:03 2010 for Lemur by doxygen 1.3.4