Rudiments
|
Inherits collection.
Inherited by table< valuetype >.
Public Member Functions | |
tablecollection () | |
tablecollection (tablecollection &c) | |
tablecollection & | operator= (tablecollection &c) |
virtual | ~tablecollection () |
virtual const char * | getType () |
virtual uint64_t | getCount () |
virtual void | setColumnName (uint64_t col, const char *name)=0 |
virtual const char * | getColumnName (uint64_t col)=0 |
virtual void | setCopyColumnNames (bool copy) |
virtual bool | getCopyColumnNames () |
virtual uint64_t | getColumnCount ()=0 |
virtual void | setValue (uint64_t row, uint64_t col, valuetype value)=0 |
virtual valuetype | getValue (uint64_t row, uint64_t col)=0 |
virtual valuetype & | getReference (uint64_t row, uint64_t col)=0 |
virtual valuetype | getValue (uint64_t row, const char *colname)=0 |
virtual uint64_t | getRowCount ()=0 |
virtual bool | getAllRowsAvailable ()=0 |
virtual ssize_t | write () |
virtual ssize_t | write (output *out) |
virtual ssize_t | writeJson () |
virtual ssize_t | writeJson (bool indent) |
virtual ssize_t | writeJson (output *out) |
virtual ssize_t | writeJson (output *out, bool indent) |
Public Member Functions inherited from collection | |
collection () | |
collection (collection &c) | |
collection & | operator= (collection &c) |
virtual | ~collection () |
comparator * | getComparator () |
void | setComparator (comparator *newcomp) |
virtual bool | isReadOnly () |
virtual bool | isBlockBased () |
virtual uint64_t | getBlockSize () |
virtual bool | isSequentialAccess () |
virtual void | setManageValues (bool manage) |
virtual bool | getManageValues () |
virtual void | setManageArrayValues (bool manage) |
virtual bool | getManageArrayValues () |
virtual void | setManageKeys (bool manage) |
virtual bool | getManageKeys () |
virtual void | setManageArrayKeys (bool manage) |
virtual bool | getManageArrayKeys () |
virtual bool | clear ()=0 |
Public Member Functions inherited from object | |
virtual | ~object () |
The tablecollection class is the parent class for all rudiments table collections.
Tables have rows and columns. Columns may have names.
Tables may be read-write or read-only, monolithic or block-based, and random-access or sequential-access.
In a monolithic implemenatation, all rows are immediately available at all times.
In a block-based implementation, rows are only immediately available in blocks. Eg. If the table has a block size of 10, then getting a value in row 6 would cause rows 0-9 to be loaded. Getting a value in row 22 would cause rows 20-29 to be loaded.
In a random implementation, values from any row may be accessed at any time. If the implementation is also block-based, then it may be more efficient to access values from adjacent rows within the current block than to access values from rows outside of the current block.
In a sequential implementation, values may only be accessed from rows within the current block or subsequent blocks. Eg. If the table has a block size of 10, then getting a value in row 6, followed by a value in row 22 would succeed, but a subsequent attempt to get a value from row 7 would fail.
|
inline |
Creates an instance of the tablecollection class.
|
inline |
Creates an instance of the tablecollection class that is a copy of "c".
|
inlinevirtual |
Deletes this instance of the tablecollection class.
|
pure virtual |
Always returns true for monolithic implementations. Only returns true in a block-based implementation if the current block contains the last row in the table.
Implemented in table< valuetype >.
|
pure virtual |
Returns the current number of columns in the table.
In a read-write implementation, returns larger and larger values as calls to setColumnName() or setValue() extend the table.
Implemented in table< valuetype >.
|
pure virtual |
Returns the name of column "col" or NULL if column "col" has no name.
Implemented in table< valuetype >.
|
inlinevirtual |
Returns whether or not this instance of the tablecollection class is configured to make copies of the values that are passed in to setColumnName().
Returns true if it is and false if it is not.
Reimplemented in table< valuetype >.
|
inlinevirtual |
Returns the number of elements in the table.
Implements collection.
|
pure virtual |
Returns a reference to the value at "row", "col".
Implemented in table< valuetype >.
|
pure virtual |
Returns the current number of rows in the table.
In a read-write implementation, returns larger and larger values as calls to setValue() extend the table.
In a block-based implementation, returns the total number of rows through the end of the current block, which is only the total number of rows in the table when getAllRowsAvailable() returns true.
Implemented in table< valuetype >.
|
inlinevirtual |
Returns "table".
Implements collection.
|
pure virtual |
Returns the value at "row", "colname". Returns NULL or 0 if there is no value at that address.
Implemented in table< valuetype >.
|
pure virtual |
Returns the value at "row", "col". Returns NULL or 0 if there is no value at that address.
Implemented in table< valuetype >.
|
inline |
Makes this instance of the tablecollection class identical to "c".
|
pure virtual |
In a read-write implementation, sets the name of column "col" to "name".
In a read-only implementation, has no effect.
Implemented in table< valuetype >.
|
inlinevirtual |
Indicates whether or not this instance of the tablecollection class should make copies the values that are passed in to setColumnName().
Defaults to "false".
Reimplemented in table< valuetype >.
|
pure virtual |
In a read-write implementation, sets the value at "row", "col" to "value".
In a read-only implementation, has no effect.
Implemented in table< valuetype >.
|
inlinevirtual |
Writes a representation of the tablecollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a representation of the tablecollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the tablecollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the tablecollection to standard output.
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the tablecollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the tablecollection to "out".
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
Implements collection.