Go to the documentation of this file.
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);
Specify which elements to extract from an n-dimensional array.
A Vector of integers, for indexing into Array<T> objects.
void setCacheSize(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath, Bool forceSmaller=True)
Array< Double > getDouble(const Slicer §ion)
Helper class for tiled access to an array in a file.
void clearCache()
Empty the cache.
void put(const Array< Bool > &, const Slicer §ion)
Put part of the array.
const IPosition & tileShape() const
Get the shape of the tiles.
const IPosition & shape() const
Get the shape of the array.
Tiled hypercube in a table.
uInt cacheSize() const
Get the current cache size (in buckets).
const IPosition & cubeShape() const
Get the shape of the hypercube.
void setCacheSize(uInt nbuckets, Bool forceSmaller=True)
Set the cache size for accessing the data.
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.
void get(Array< Bool > &, const Slicer §ion)
Array< DComplex > getDComplex(const Slicer §ion)
void setMaximumCacheSize(uInt nbytes)
Set the maximum cache size (in bytes).
uInt maximumCacheSize() const
Get the maximum cache size (in bytes).
void setCacheSize(const IPosition &sliceShape, const IPosition &axisPath, Bool forceSmaller=True)
Set the cache size using the given access pattern.
Array< Int > getInt(const Slicer §ion)
uInt cacheSize() const
Get the current cache size (in buckets).
void emptyCache()
Empty the cache.
this file contains all the compiler specific defines
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 &)
Array< uChar > getUChar(const Slicer §ion)
Array< Float > getFloat(const Slicer §ion)
Options for the Tiled Storage Manager Access.
Array< Bool > getBool(const Slicer §ion)
Get part of the array.
virtual void showCacheStatistics(ostream &os) const
Show the cache statistics.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
void showCacheStatistics(ostream &os) const
Show the cache statistics.
String: the storage and methods of handling collections of characters.
Tiled access to an array in a file.
Array< Complex > getComplex(const Slicer §ion)
void flush()
Flush the cache.
bool Bool
Define the standard types used by Casacore.
const IPosition & tileShape() const
Get the shape of the tiles.
virtual void flushCache()
Flush the data in the cache.
Bool isWritable() const
Is the file writable?
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< Short > getShort(const Slicer §ion)