#include <table.h>
|
| | Table (const String &config, StoreAccess access=SA_readOnly) |
| |
| | Table (const String &store, const String &refs, const String &map, StoreAccess access=SA_readOnly, bool overwrite=false, bool test=false, const String &name=String()) |
| |
| bool | operator! () const |
| |
| void | close () |
| | @ close the table, including its Sink (if any) More...
|
| |
| String | getName () const |
| |
| String | getConfig () const |
| | @ return the table's configuration More...
|
| |
| String | getColumnConfig (uint col) const |
| | Get a column's configuration. More...
|
| |
| String | getColumnName (uint col) const |
| | Get a column name from a column number. More...
|
| |
| DerivedDataType | getColumnType (uint col) const |
| | Get a column type from a column number. More...
|
| |
| uint | getColumnNumber (const String &name) const |
| | Get a column from a column name. More...
|
| |
| uint64 | getRowCount () const |
| |
| uint64 | getDocCount () const |
| | compatibility with Store More...
|
| |
| uint | getColumnCount () const |
| |
| SourcePtr | createSource (uint64 row=0) const |
| | create a Source More...
|
| |
| Sink * | getSink () |
| |
| bool | forEachColumn (Sink *sink, const std::vector< uint > &columns=std::vector< uint >()) const |
| | Call a Sink for each column in this table. More...
|
| |
| bool | forEach (Sink *sink, const std::vector< uint > &columns=std::vector< uint >(), StatusCallback status=defaultStatus) const |
| | Call a Sink for each cell in row/column order. More...
|
| |
Definition at line 25 of file table.h.
read-only cursor into a table, parameterized on column
Definition at line 122 of file table.h.
- Parameters
-
| store | the Table's store file |
| refs | the Table's refs file (if any) |
| map | the Table's map file (if any) |
| access | how the Table will be opened |
| overwrite | start fresh if true; append if false |
| test | compare on read if true; append on read if false |
| name | if overwrite, name the table this |
| static const char* Xpace::Table::TAG |
( |
| ) |
|
|
static |
| bool Xpace::Table::operator! |
( |
| ) |
const |
- Returns
- true if the table is empty or does not exist
| void Xpace::Table::close |
( |
| ) |
|
@ close the table, including its Sink (if any)
| String Xpace::Table::getName |
( |
| ) |
const |
| String Xpace::Table::getConfig |
( |
| ) |
const |
@ return the table's configuration
| String Xpace::Table::getColumnConfig |
( |
uint |
col | ) |
const |
Get a column's configuration.
- Parameters
-
- Returns
- the column's Configuration
| String Xpace::Table::getColumnName |
( |
uint |
col | ) |
const |
Get a column name from a column number.
- Parameters
-
- Returns
- the column number, String() if not found
Get a column type from a column number.
- Parameters
-
- Returns
- the column type, none if not found
| uint Xpace::Table::getColumnNumber |
( |
const String & |
name | ) |
const |
Get a column from a column name.
- Parameters
-
- Returns
- the column number, ~0 if not found
| uint64 Xpace::Table::getRowCount |
( |
| ) |
const |
- Returns
- the number of rows in the table
| uint64 Xpace::Table::getDocCount |
( |
| ) |
const |
|
inline |
| uint Xpace::Table::getColumnCount |
( |
| ) |
const |
- Returns
- the number of columns in the table
| Sink* Xpace::Table::getSink |
( |
| ) |
|
- Returns
- the (only) Sink to this table
| bool Xpace::Table::forEachColumn |
( |
Sink * |
sink, |
|
|
const std::vector< uint > & |
columns = std::vector< uint >() |
|
) |
| const |
Call a Sink for each column in this table.
- Parameters
-
| sink | called for each cell |
| columns | if not empty, return these columns in this order |
- Returns
- true iff act always returned true, false otherwise
Call a Sink for each cell in row/column order.
- Parameters
-
| sink | called for each cell |
| columns | if not empty, return these columns in this order |
| status | called for each row, return interval before next call |
- Returns
- true iff sink always returned true, false otherwise
| const char* Xpace::Table::NAME_TAG |
|
static |
The documentation for this class was generated from the following file: