#include <SDBVMat.h>
Inheritance diagram for PLearn::SDBVMatrix:


Public Member Functions | |
| SDBVMatrix (const string &dbname, bool detect_missing=false) | |
| Currently, the constructor assumes that the SDB exists on-disk. | |
| void | appendField (const string &name, SDBVMField *new_field) |
| Add a new field to the VMatrix. | |
| const FieldsVector & | getFields () const |
| Obtain a list of the added fields. | |
| virtual void | getRow (int i, Vec v) const |
| Transform row i of the SimpldDB into a row of the VMatrix. | |
| SDBWithStats & | sdb () |
| Access underlying sdb. | |
| const SDBWithStats & | sdb () const |
Protected Attributes | |
| SDBWithStats | sdb_ |
| FieldsVector | fields_ |
| Row | row_ |
| bool | detect_missing_ |
Private Types | |
| typedef RowBufferedVMatrix | inherited |
| typedef vector< PSDBVMField > | FieldsVector |
Definition at line 251 of file SDBVMat.h.
|
|
|
|
|
Reimplemented from PLearn::RowBufferedVMatrix. |
|
||||||||||||
|
Currently, the constructor assumes that the SDB exists on-disk.
Definition at line 216 of file SDBVMat.cc. References PLearn::SDBWithStats::computeStats(), PLearn::SimpleDB< KeyType, QueryResult >::getSchema(), PLearn::SDBWithStats::hasStats(), PLearn::SDBWithStats::loadStats(), row_, PLearn::SDBWithStats::saveStats(), PLearn::SDB, sdb_, and PLearn::SimpleDB< KeyType, QueryResult >::size(). |
|
||||||||||||
|
Add a new field to the VMatrix. The VMatrix assumes ownership of the field. Definition at line 230 of file SDBVMat.cc. References fields_, PLearn::SDBVMField::fieldType(), PLearn::SDBVMField::fieldWidth(), k, PLearn::PSDBVMField, PLearn::TVec< T >::resize(), and PLearn::split(). |
|
|
Obtain a list of the added fields.
|
|
||||||||||||
|
Transform row i of the SimpldDB into a row of the VMatrix.
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 255 of file SDBVMat.cc. References detect_missing_, fields_, PLearn::SimpleDB< KeyType, QueryResult >::getInRow(), PLearn::TVec< T >::hasMissing(), PLWARNING, row_, sdb_, and PLearn::TVec< T >::subVec(). |
|
|
|
|
|
Access underlying sdb.
|
|
|
Definition at line 286 of file SDBVMat.h. Referenced by getRow(). |
|
|
Definition at line 284 of file SDBVMat.h. Referenced by appendField(), and getRow(). |
|
|
Definition at line 285 of file SDBVMat.h. Referenced by getRow(), and SDBVMatrix(). |
|
|
Definition at line 283 of file SDBVMat.h. Referenced by getRow(), and SDBVMatrix(). |
1.3.7