#include <AutoSDBVMatrix.h>
Inheritance diagram for PLearn::AutoSDBVMatrix:
Public Member Functions | |
AutoSDBVMatrix (const string &dbname) | |
int | nstrings () |
Returns the number of string fields (these will not be used in getRow!). | |
void | getMappings () |
gets mappings for each string field | |
virtual string | getValString (int col, real val) const |
returns the string associated with value val for field# col. | |
Protected Member Functions | |
virtual void | getNewRow (int i, const Vec &v) const |
This is the only method requiring implementation in subclasses. | |
Protected Attributes | |
SDB | sdb_ |
Row | row_ |
hash_map< string, StringFieldMapping > | string_field_map |
hash_map< string, NumToStringMapping > | num2string_map |
Definition at line 155 of file AutoSDBVMatrix.h.
|
|
gets mappings for each string field
Definition at line 110 of file AutoSDBVMatrix.cc. References PLearn::SimpleDB< KeyType, QueryResult >::getSchema(), PLearn::isfile(), PLearn::load(), MISSING_VALUE, num2string_map, sdb_, slash, string_field_map, and PLearn::StringType. Referenced by AutoSDBVMatrix(). |
|
This is the only method requiring implementation in subclasses.
Implements PLearn::RowBufferedVMatrix. Definition at line 85 of file AutoSDBVMatrix.cc. References PLearn::RowIterator::asCharacter(), PLearn::RowIterator::asString(), PLearn::Row::begin(), PLearn::Row::const_iterator, PLearn::SimpleDB< KeyType, QueryResult >::getInRow(), PLearn::RowIterator::isCharacter(), PLearn::RowIterator::isMissing(), PLearn::RowIterator::isString(), PLearn::TVec< T >::length(), MISSING_VALUE, PLearn::RowIterator::name(), PLERROR, row_, sdb_, string_field_map, PLearn::RowIterator::toDouble(), PLearn::Vec, and PLearn::VMatrix::width(). |
|
returns the string associated with value val for field# col. Or returns "" if no string is associated. Reimplemented from PLearn::VMatrix. Definition at line 169 of file AutoSDBVMatrix.h. References getValString(), num2string_map, and val. Referenced by getValString(). |
|
Returns the number of string fields (these will not be used in getRow!).
Definition at line 162 of file AutoSDBVMatrix.h. References sdb_, PLearn::VMatrix::width(), and PLearn::SimpleDB< KeyType, QueryResult >::width(). |
|
Definition at line 185 of file AutoSDBVMatrix.h. Referenced by getMappings(), and getValString(). |
|
Definition at line 183 of file AutoSDBVMatrix.h. Referenced by AutoSDBVMatrix(), and getNewRow(). |
|
Definition at line 182 of file AutoSDBVMatrix.h. Referenced by AutoSDBVMatrix(), getMappings(), getNewRow(), and nstrings(). |
|
Definition at line 184 of file AutoSDBVMatrix.h. Referenced by getMappings(), and getNewRow(). |