Module locKeyReader :: Class KeyLocFilesReader
[show private | hide private]
[frames | no frames]

Class KeyLocFilesReader


Location and key reader class which allow to read data from location and key files simultaneuosly (it allow to read data from one key file and a number of location files, e.g. pass2, post-pass2).
Method Summary
  __init__(self, keyFileName, locFileList)
Class constructor which initialize key and location file descriptions and reads their headers.
  backToFirstRecord(self)
Return key and location files descriptors to the position of first records in those files
  dataInStreams(self)
Return dictionary[stream]=[proxies] list of proxies in a stream
  fileIDs(self)
Return list of file Id's from location file
  formTupleTriplet(self, recordInfoList)
Read (sv,fileOffset,streamIdx) from each entry of given recordInfoList and form combined (sv,fileOffset,streamIdx).
  locFileList(self)
Return list of location files associated with given class
  newOldIndecies(self)
Build conversion from new stream index to old one
  numberOfSyncValues(self)
Return number of sync values from key file
  readLastRecordInfo(self)
Read last record from key and location files and return tuple (syncValue, list of fileOffsets, stream index)
  readRecordInfo(self)
Read one record from key and location files at their current position and return tuple (syncValue, list of fileOffsets, stream index).
  streamNames(self)
Return list of streams in location file

Method Details

__init__(self, keyFileName, locFileList)
(Constructor)

Class constructor which initialize key and location file descriptions and reads their headers.

backToFirstRecord(self)

Return key and location files descriptors to the position of first records in those files

dataInStreams(self)

Return dictionary[stream]=[proxies] list of proxies in a stream

fileIDs(self)

Return list of file Id's from location file

formTupleTriplet(self, recordInfoList)

Read (sv,fileOffset,streamIdx) from each entry of given recordInfoList and form combined (sv,fileOffset,streamIdx). This method is used in readRecordInfo and readLastRecordInfo.

locFileList(self)

Return list of location files associated with given class

newOldIndecies(self)

Build conversion from new stream index to old one

numberOfSyncValues(self)

Return number of sync values from key file

readLastRecordInfo(self)

Read last record from key and location files and return tuple (syncValue, list of fileOffsets, stream index)

readRecordInfo(self)

Read one record from key and location files at their current position and return tuple (syncValue, list of fileOffsets, stream index). Internally it reads file offsets from all location files associated with key file and forms a combined files offset list.

streamNames(self)

Return list of streams in location file

Generated by Epydoc 2.1 on Tue Jan 24 10:46:01 2006 http://epydoc.sf.net