28 #ifndef TABLES_TILEDFILEACCESS_H
29 #define TABLES_TILEDFILEACCESS_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 & tileShape() const
Get the shape of the tiles.
Tiled hypercube in a table.
void flush()
Flush the cache.
Helper class for tiled access to an array in a file.
unsigned long long uInt64
uInt cacheSize() const
Get the current cache size (in buckets).
const IPosition & tileShape() const
Get the shape of the tiles.
Array< Short > getShort(const Slicer §ion)
void setCacheSize(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath, Bool forceSmaller=True)
void clearCache()
Empty the cache.
void showCacheStatistics(ostream &os) const
Show the cache statistics.
virtual void flushCache()
Flush the data in the cache.
virtual void showCacheStatistics(ostream &os) const
Show the cache statistics.
const IPosition & cubeShape() const
Get the shape of the hypercube.
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.
bool Bool
Define the standard types used by Casacore.
Array< Float > getFloat(const Slicer §ion)
DataType dataType() const
void setMaximumCacheSize(uInt64 nbytes)
Set the maximum cache size (in bytes).
Specify which elements to extract from an n-dimensional array.
Array< Complex > getComplex(const Slicer §ion)
Array< Double > getDouble(const Slicer §ion)
const IPosition & shape() const
Get the shape of the array.
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)
uInt cacheSize() const
Get the current cache size (in buckets).
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.
uInt64 maximumCacheSize() const
Get the maximum cache size (in bytes).
void emptyCache()
Empty the cache.
Bool isWritable() const
Is the file writable?
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.