28 #ifndef TABLES_TILEDSHAPESTMAN_H 29 #define TABLES_TILEDSHAPESTMAN_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/tables/DataMan/TiledStMan.h> 35 #include <casacore/casa/Containers/Block.h> 36 #include <casacore/casa/BasicSL/String.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.
virtual Record dataManagerSpec() const
Return a record containing data manager specifications and info.
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.
virtual IPosition defaultTileShape() const
Get the default tile shape.
Base class for Tiled Storage Manager classes.
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.
const IPosition & tileShape(uInt rownr) const
Get the tile shape of the data in the given row.
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.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void setupCheck(const TableDesc &tableDesc, const Vector< String > &dataNames) const
Check if the hypercolumn definition fits this storage manager.
virtual DataManager * clone() const
Clone this object.
virtual void setShape(uInt rownr, TSMCube *hypercube, const IPosition &shape, const IPosition &tileShape)
Set the shape and tile shape of the given hypercube.
virtual Bool canAccessColumn(Bool &reask) const
TiledShapeStMan can access a column if there are 2 hypercubes and the first one is empty...
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
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.
uInt nrow() const
Get the nr of rows in this storage manager.
TiledShapeStMan & operator=(const TiledShapeStMan &)
Forbid assignment.
String: the storage and methods of handling collections of characters.
virtual String dataManagerType() const
Get the type name of the data manager (i.e.
Define the structure of a Casacore table.
Block< uInt > rowMap_p
The map of row number to cube and position in cube.
this file contains all the compiler specific defines
uInt maximumCacheSize() const
Get the current maximum cache size (in bytes).