28 #ifndef TABLES_TILEDSHAPESTMAN_H
29 #define TABLES_TILEDSHAPESTMAN_H
A Vector of integers, for indexing into Array<T> objects.
void extendRowMap(uInt nrow)
Extend the map of row numbers to cube number plus offset will new empty entries.
A 1-D Specialization of the Array class.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Make the object from the type name string.
virtual TSMCube * getHypercube(uInt rownr)
Get the hypercube in which the given row is stored.
void extendHypercube(uInt rownr, uInt cubeNr)
Extend the hypercube with the given number of elements in the last dimension.
Tiled hypercube in a table.
AipsIO is the object persistency mechanism of Casacore.
Base class for Tiled Storage Manager classes.
virtual void setupCheck(const TableDesc &tableDesc, const Vector< String > &dataNames) const
Check if the hypercolumn definition fits this storage manager.
TiledShapeStMan()
Create a TiledShapeStMan.
uInt nrUsedRowMap_p
The nr of elements used in the map blocks.
virtual void readHeader(uInt nrrow, Bool firstTime)
Read the header info.
virtual Bool flush(AipsIO &, Bool fsync)
Flush and optionally fsync the data.
Int findHypercube(const IPosition &shape)
Find the hypercube for the given shape.
void addRow(uInt nrrow)
Add rows to the storage manager.
IPosition defaultTileShape_p
The default tile shape.
virtual void create(uInt nrrow)
Let the storage manager create files as needed for a new table.
void updateRowMap(uInt cubeNr, uInt pos, uInt rownr)
Update the map of row numbers to cube number plus offset.
virtual TSMCube * singleHypercube()
Test if only one hypercube is used by this storage manager.
Tiled Data Storage Manager using the shape as id.
virtual IPosition defaultTileShape() const
Get the default tile shape.
virtual DataManager * clone() const
Clone this object.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void setShape(uInt rownr, TSMCube *hypercube, const IPosition &shape, const IPosition &tileShape)
Set the shape and tile shape of the given hypercube.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
uInt nrow() const
Get the nr of rows in this storage manager.
virtual Bool canAccessColumn(Bool &reask) const
TiledShapeStMan can access a column if there are 2 hypercubes and the first one is empty...
Int lastHC_p
The last hypercube found.
void addHypercube(uInt rownr, const IPosition &cubeShape, const IPosition &tileShape)
Add a hypercube.
Abstract base class for a data manager.
TiledShapeStMan & operator=(const TiledShapeStMan &)
Forbid assignment.
uInt maximumCacheSize() const
Get the current maximum cache size (in MiB (MibiByte)).
String: the storage and methods of handling collections of characters.
Define the structure of a Casacore table.
const IPosition & tileShape(uInt rownr) const
Get the tile shape of the data in the given row.
Block< uInt > rowMap_p
The map of row number to cube and position in cube.
virtual String dataManagerType() const
Get the type name of the data manager (i.e.
virtual Record dataManagerSpec() const
Return a record containing data manager specifications and info.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.