28 #ifndef TABLES_NULLTABLE_H
29 #define TABLES_NULLTABLE_H
89 virtual void unlock()
override;
91 virtual void resync()
override;
100 Bool noRows)
const override;
112 Bool byColumn)
const override;
116 Bool addToParent)
override;
126 const String& oldName)
override;
132 Bool determineOrder)
const override;
140 const String& oldName)
override;
A 1-D Specialization of the Array class.
int tableOption() const
Get the table option.
Class indicating a null Table object.
virtual TableDesc actualTableDesc() const override
Get the actual table description.
virtual void resync() override
Resync the Table object with the table file.
virtual BaseTable * root() override
Get pointer to root table (i.e.
virtual const TableLock & lockOptions() const override
Get the locking info.
virtual void unlock() override
Unlock the table.
Envelope class for the description of a table column.
virtual Bool hasLock(FileLocker::LockType) const override
Has this process the read or write lock, thus can the table be read or written safely?
virtual Bool canRemoveRow() const override
Test if it is possible to remove a row from this table.
virtual Vector< rownr_t > * rowStorage() override
By the default the table cannot return the storage of rownrs.
Options defining how table files are organized.
virtual BaseTable * doSort(PtrBlock< BaseColumn * > &, const Block< CountedPtr< BaseCompare > > &, const Block< Int > &sortOrder, int sortOption, std::shared_ptr< Vector< rownr_t >> sortIterBoundaries, std::shared_ptr< Vector< size_t >> sortIterKeyIdxChange) override
Do the actual sort.
virtual void mergeLock(const TableLock &lockOptions) override
Merge the given lock info with the existing one.
virtual TableRecord & keywordSet() override
Get readonly access to the table keyword set.
NullTable()
Default constructor.
Referenced counted pointer for constant data.
Abstract base class for tables.
virtual void addColumn(const ColumnDesc &columnDesc, Bool addToParent) override
Add one or more columns to the table.
virtual Bool canAddRow() const override
Test if it is possible to add a row to this table.
virtual void removeRow(rownr_t rownr) override
Remove rows.
virtual void removeColumn(const Vector< String > &columnNames) override
Remove columns.
virtual TableRecord & rwKeywordSet() override
Get read/write access to the table keyword set.
virtual Bool canRenameColumn(const String &columnName) const override
Test if a column can be renamed.
virtual Bool isNull() const override
The table is a null table.
virtual DataManager * findDataManager(const String &name, Bool byColumn) const override
Find the data manager with the given name or for the given column.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void addRow(rownr_t nrrow, Bool initialize) override
Add one or more rows and possibly initialize them.
virtual void renameHypercolumn(const String &newName, const String &oldName) override
Rename a hypercolumn.
Class to hold table lock options.
A drop-in replacement for Block<T*>.
A hierarchical collection of named fields of various types.
virtual Bool adjustRownrs(rownr_t nrrow, Vector< rownr_t > &rownrs, Bool determineOrder) const override
Adjust the row numbers to be the actual row numbers in the root table.
virtual Bool rowOrder() const override
Tell if the table is in row order.
Base error class for storage manager.
uInt64 rownr_t
Define the type of a row number in a table.
virtual Bool lock(FileLocker::LockType, uInt nattempts) override
Try to lock the table for read or write access.
virtual Bool isWritable() const override
Test if this table is writable.
Abstract base class for a data manager.
virtual Bool asBigEndian() const override
Is the table stored in big or little endian format?
virtual void flush(Bool fsync, Bool recursive) override
Flush the table, i.e.
virtual Record dataManagerInfo() const override
Get the data manager info.
virtual Bool isMultiUsed(Bool checkSubTable) const override
Is the table in use (i.e.
virtual void renameSubTables(const String &newName, const String &oldName) override
Rename the subtables (used by rename function).
virtual Vector< rownr_t > rowNumbers() const override
Get a vector of row numbers.
String: the storage and methods of handling collections of characters.
virtual void renameColumn(const String &newName, const String &oldName) override
Rename a column.
Define the structure of a Casacore table.
virtual BaseColumn * getColumn(uInt columnIndex) const override
Get a column object using its index.
LockType
Define the possible lock types.
const TableDesc & tableDesc() const
Get the table description.
virtual uInt getModifyCounter() const override
Get the modify counter.
TableError makeError(const String &name) const
Make an exception message with the name of the function.
NullTable & operator=(const NullTable &)
Assignment is forbidden, because copying a table requires some more knowledge (like table name of res...
virtual Bool canRemoveColumn(const Vector< String > &columnNames) const override
Test if columns can be removed.
virtual void deepCopy(const String &newName, const Record &dataManagerInfo, const StorageOption &, int tableOption, Bool valueCopy, int endianFormat, Bool noRows) const override
virtual const StorageOption & storageOption() const override
Get the storage option used for the table.
virtual void reopenRW() override
All functions throw a "null table" exception.
Abstract base class for a table column.