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

indri::parse::WARCRecord Class Reference

#include <WARCDocumentIterator.hpp>

List of all members.

Public Member Functions

 WARCRecord (gzFile &in, indri::utility::Buffer &buf)
 ~WARCRecord ()
std::string getWarcType ()
std::string getUUID ()
std::string getTrecID ()
std::string getTargetURI ()
const char * getHeader ()
const char * getContent ()
std::string getMetadata (const char *key)
bool readRecord ()

Static Public Attributes

const char * WARCTYPE = "WARC-Type"
const char * WARCRECORDID = "WARC-Record-ID"
const char * CONTENTLENGTH = "Content-Length"
const char * WARCTARGETURI = "WARC-Target-URI"
const char * WARCTRECID = "WARC-TREC-ID"

Private Member Functions

bool _readLine (char *&beginLine, size_t &lineLength)
bool readHeader ()
bool readContent ()

Private Attributes

std::string warcType
std::string uuid
std::string trecID
std::string targetURI
int contentLength
indri::utility::HashTable<
std::string, std::string > 
metadata
std::string header
const char * content
gzFile & _gzin
indri::utility::Buffer_buffer


Constructor & Destructor Documentation

indri::parse::WARCRecord::WARCRecord gzFile &  in,
indri::utility::Buffer buf
[inline]
 

indri::parse::WARCRecord::~WARCRecord  ) 
 


Member Function Documentation

bool indri::parse::WARCRecord::_readLine char *&  beginLine,
size_t &  lineLength
[private]
 

const char* indri::parse::WARCRecord::getContent  )  [inline]
 

const char* indri::parse::WARCRecord::getHeader  )  [inline]
 

std::string indri::parse::WARCRecord::getMetadata const char *  key  ) 
 

std::string indri::parse::WARCRecord::getTargetURI  )  [inline]
 

std::string indri::parse::WARCRecord::getTrecID  )  [inline]
 

std::string indri::parse::WARCRecord::getUUID  )  [inline]
 

std::string indri::parse::WARCRecord::getWarcType  )  [inline]
 

bool indri::parse::WARCRecord::readContent  )  [private]
 

bool indri::parse::WARCRecord::readHeader  )  [private]
 

bool indri::parse::WARCRecord::readRecord  ) 
 


Member Data Documentation

indri::utility::Buffer& indri::parse::WARCRecord::_buffer [private]
 

gzFile& indri::parse::WARCRecord::_gzin [private]
 

const char* indri::parse::WARCRecord::content [private]
 

const char * indri::parse::WARCRecord::CONTENTLENGTH = "Content-Length" [static]
 

int indri::parse::WARCRecord::contentLength [private]
 

std::string indri::parse::WARCRecord::header [private]
 

indri::utility::HashTable< std::string, std::string > indri::parse::WARCRecord::metadata [private]
 

std::string indri::parse::WARCRecord::targetURI [private]
 

std::string indri::parse::WARCRecord::trecID [private]
 

std::string indri::parse::WARCRecord::uuid [private]
 

const char * indri::parse::WARCRecord::WARCRECORDID = "WARC-Record-ID" [static]
 

const char * indri::parse::WARCRecord::WARCTARGETURI = "WARC-Target-URI" [static]
 

const char * indri::parse::WARCRecord::WARCTRECID = "WARC-TREC-ID" [static]
 

const char * indri::parse::WARCRecord::WARCTYPE = "WARC-Type" [static]
 

std::string indri::parse::WARCRecord::warcType [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