28 #ifndef TABLES_TILEDSHAPESTMAN_H
29 #define TABLES_TILEDSHAPESTMAN_H
A Vector of integers, for indexing into Array<T> objects.
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.
void addHypercube(rownr_t rownr, const IPosition &cubeShape, const IPosition &tileShape)
Add a hypercube.
rownr_t nrow() const
Get the nr of rows in this storage manager.
Tiled hypercube in a table.
AipsIO is the object persistency mechanism of Casacore.
void updateRowMap(uInt cubeNr, uInt pos, rownr_t rownr)
Update the map of row numbers to cube number plus offset.
unsigned long long uInt64
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.
const IPosition & tileShape(rownr_t rownr) const
Get the tile shape of the data in the given row.
void addRow64(rownr_t nrrow)
Add rows to the storage manager.
TiledShapeStMan()
Create a TiledShapeStMan.
virtual void setShape(rownr_t rownr, TSMCube *hypercube, const IPosition &shape, const IPosition &tileShape)
Set the shape and tile shape of the given hypercube.
void extendHypercube(rownr_t rownr, uInt cubeNr)
Extend the hypercube with the given number of elements in the last dimension.
virtual TSMCube * getHypercube(rownr_t rownr)
Get the hypercube in which the given row is stored.
virtual Bool canAccessColumn() const
TiledShapeStMan can access a column if there are 2 hypercubes and the first one is empty...
uInt nrUsedRowMap_p
The nr of elements used in the map blocks.
virtual Bool flush(AipsIO &, Bool fsync)
Flush and optionally fsync the data.
virtual void readHeader(rownr_t nrrow, Bool firstTime)
Read the header info.
Int findHypercube(const IPosition &shape)
Find the hypercube for the given shape.
IPosition defaultTileShape_p
The default tile shape.
virtual TSMCube * singleHypercube()
Test if only one hypercube is used by this storage manager.
void extendRowMap(rownr_t nrow)
Extend the map of row numbers to cube number plus offset will new empty entries.
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.
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.
uInt64 rownr_t
Define the type of a row number in a table.
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.
virtual void create64(rownr_t nrrow)
Let the storage manager create files as needed for a new table.
Define the structure of a Casacore table.
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.