Go to the documentation of this file.
28 #ifndef TABLES_TILEDSTMANACCESSOR_H
29 #define TABLES_TILEDSTMANACCESSOR_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/DataMan/DataManAccessor.h>
34 #include <casacore/casa/iosfwd.h>
DataManager * getDataManager() const
Get the data manager.
void setCacheSize(uInt rownr, uInt nbuckets, Bool forceSmaller=True)
Set the cache size for accessing the hypercube containing the given row.
const Record & valueRecord(uInt rownr) const
Get coordinate and id values of the hypercube in the given row.
A Vector of integers, for indexing into Array<T> objects.
Abstract base class for a data manager.
void setMaximumCacheSize(uInt nMiB)
Set the maximum cache size (in MibiByte) to be used by a hypercube in the storage manager.
uInt getCacheSize(uInt hypercube) const
Get the current cache size (in buckets) for the given hypercube.
ROTiledStManAccessor()
Default constructor should be used with care.
virtual ~ROTiledStManAccessor()
uInt maximumCacheSize() const
Get the maximum cache size (in MiB).
const IPosition & tileShape(uInt rownr) const
Get the tile shape of the data in the given row.
void setCacheSize(uInt rownr, const IPosition &sliceShape, const IPosition &axisPath, Bool forceSmaller=True)
Set the cache size using the corresponding calcCacheSize function mentioned above.
ROTiledStManAccessor & operator=(const ROTiledStManAccessor &that)
Assignment (reference semantics).
void clearCaches()
Clear the caches used by the hypercubes in this storage manager.
Give access to some TiledStMan functions.
uInt calcCacheSize(uInt rownr, const IPosition &sliceShape, const IPosition &axisPath) const
Calculate the cache size (in buckets) for accessing the hypercube containing the given row.
ROTiledStManAccessor(const Table &table, const String &name, Bool byColumn=False)
Construct the object for a data manager in the table given the name of the data manager or the column...
Main interface class to a read/write table.
uInt bucketSize(uInt rownr) const
Get the bucket size (in bytes) of the hypercube in the given row.
const IPosition & hypercubeShape(uInt rownr) const
Get the hypercube shape of the data in the given row.
ROTiledStManAccessor(const ROTiledStManAccessor &that)
Copy constructor (reference semantics).
Base class for Tiled Storage Manager classes.
this file contains all the compiler specific defines
Base class for the Data Manager Accessor classes.
void setCacheSize(uInt rownr, const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath, Bool forceSmaller=True)
const Record & getValueRecord(uInt hypercube) const
Get coordinate and id values of the given hypercube.
uInt getBucketSize(uInt hypercube) const
Get the bucket size (in bytes) of the given hypercube.
uInt calcCacheSize(uInt rownr, const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath) const
uInt nhypercubes() const
Return the number of hypercubes.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
A hierarchical collection of named fields of various types.
TiledStMan * dataManPtr_p
void setHypercubeCacheSize(uInt hypercube, uInt nbuckets, Bool forceSmaller=True)
This version allows setting the tile cache for a particular hypercube.
const IPosition & getHypercubeShape(uInt hypercube) const
Get the shape of the given hypercube.
const IPosition & getTileShape(uInt hypercube) const
Get the tile shape of the given hypercube.
uInt cacheSize(uInt rownr) const
Get the current cache size (in buckets) for the hypercube in the given row.