28 #ifndef TABLES_TILEDFILEACCESS_H 29 #define TABLES_TILEDFILEACCESS_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/tables/DataMan/TSMCube.h> 35 #include <casacore/tables/DataMan/TSMOption.h> 36 #include <casacore/casa/Utilities/DataType.h> 41 class TiledFileHelper;
153 Int deleteValue,
Bool examineForDeleteValues=
True);
217 axisPath, forceSmaller,
True); }
224 axisPath, forceSmaller,
True); }
238 uInt nrPixelsPerTile = 32768);
A Vector of integers, for indexing into Array<T> objects.
void setCacheSize(const IPosition &sliceShape, const IPosition &axisPath, Bool forceSmaller=True)
Set the cache size using the given access pattern.
void put(const Array< Bool > &, const Slicer §ion)
Put part of the array.
Array< uChar > getUChar(const Slicer §ion)
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
const IPosition & shape() const
Get the shape of the array.
virtual void showCacheStatistics(ostream &os) const
Show the cache statistics.
void showCacheStatistics(ostream &os) const
Show the cache statistics.
Tiled hypercube in a table.
void flush()
Flush the cache.
Helper class for tiled access to an array in a file.
Bool isWritable() const
Is the file writable?
uInt cacheSize() const
Get the current cache size (in buckets).
Array< Short > getShort(const Slicer §ion)
void setMaximumCacheSize(uInt nbytes)
Set the maximum cache size (in bytes).
void setCacheSize(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath, Bool forceSmaller=True)
void clearCache()
Empty the cache.
uInt cacheSize() const
Get the current cache size (in buckets).
virtual void flushCache()
Flush the data in the cache.
DataType dataType() const
TiledFileAccess(const String &fileName, Int64 fileOffset, const IPosition &shape, const IPosition &tileShape, DataType dataType, const TSMOption &=TSMOption(), Bool writable=False)
Create a TiledFileAccess object.
TiledFileAccess & operator=(const TiledFileAccess &)
Options for the Tiled Storage Manager Access.
uInt maximumCacheSize() const
Get the maximum cache size (in bytes).
bool Bool
Define the standard types used by Casacore.
const IPosition & tileShape() const
Get the shape of the tiles.
Array< Float > getFloat(const Slicer §ion)
const IPosition & tileShape() const
Get the shape of the tiles.
Specify which elements to extract from an n-dimensional array.
Array< Complex > getComplex(const Slicer §ion)
Array< Double > getDouble(const Slicer §ion)
const IPosition & cubeShape() const
Get the shape of the hypercube.
virtual void setCacheSize(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath, Bool forceSmaller, Bool userSet)
Set the cache size for the given slice and access path.
Array< Int > getInt(const Slicer §ion)
String: the storage and methods of handling collections of characters.
static IPosition makeTileShape(const IPosition &arrayShape, uInt nrPixelsPerTile=32768)
Make a tile shape from the array shape to fit as closely as possible the number of pixels in the tile...
Array< Bool > getBool(const Slicer §ion)
Get part of the array.
void emptyCache()
Empty the cache.
this file contains all the compiler specific defines
Tiled access to an array in a file.
Array< DComplex > getDComplex(const Slicer §ion)
void setCacheSize(uInt nbuckets, Bool forceSmaller=True)
Set the cache size for accessing the data.