|
|
virtual unsigned long | add_chunk (const std::string &data_url, unsigned long long size, unsigned long long offset, const std::vector< unsigned int > &position_in_array) |
| |
| virtual unsigned long | add_chunk (const std::string &data_url, unsigned long long size, unsigned long long offset, std::string position_in_array="") |
| | Add a new chunk as defined by an h4:byteStream element. More...
|
| |
|
| DmrppArray (const DmrppArray &rhs) |
| |
|
| DmrppArray (const std::string &n, const std::string &d, libdap::BaseType *v) |
| |
|
| DmrppArray (const std::string &n, libdap::BaseType *v) |
| |
|
virtual void | dump (ostream &strm) const |
| |
|
virtual void | dump (std::ostream &strm) const |
| |
|
virtual const std::vector< unsigned int > & | get_chunk_dimension_sizes () const |
| |
| virtual unsigned int | get_chunk_size_in_elements () const |
| | Get the number of elements in this chunk. More...
|
| |
|
virtual const std::vector< Chunk > & | get_immutable_chunks () const |
| |
| virtual std::vector< unsigned int > | get_shape (bool constrained) |
| | Get the array shape. More...
|
| |
| virtual unsigned long long | get_size (bool constrained=false) |
| | Return the total number of elements in this Array. More...
|
| |
| virtual void | ingest_compression_type (std::string compression_type_string) |
| | Parses the text content of the XML element h4:chunkDimensionSizes into the internal vector<unsigned int> representation. More...
|
| |
| virtual bool | is_deflate_compression () const |
| | Returns true if this object utilizes deflate compression. More...
|
| |
| virtual bool | is_shuffle_compression () const |
| | Returns true if this object utilizes shuffle compression. More...
|
| |
|
DmrppArray & | operator= (const DmrppArray &rhs) |
| |
| virtual void | parse_chunk_dimension_sizes (std::string chunk_dim_sizes_string) |
| | Set the dimension sizes for a chunk. More...
|
| |
| void | print_chunks_element (libdap::XMLWriter &xml, const std::string &name_space="") |
| | Print the Chunk information. More...
|
| |
| virtual void | print_dap4 (libdap::XMLWriter &writer, bool constrained=false) |
| | Shadow libdap::Array::print_dap4() - optionally prints DMR++ chunk information. More...
|
| |
| void | print_dmrpp (libdap::XMLWriter &writer, bool constrained=false) |
| | Print the DMR++ response for the Scalar types. More...
|
| |
|
virtual libdap::BaseType * | ptr_duplicate () |
| |
| virtual bool | read () |
| | Read data for the array. More...
|
| |
| void | set_chunk_dimension_sizes (const std::vector< size_t > &chunk_dims) |
| | Set the value of the chunk dimension sizes given a vector of HDF5 hsize_t. More...
|
| |
| void | set_deflate (bool value) |
| | Set the value of the deflate property. More...
|
| |
| void | set_shuffle (bool value) |
| | Set the value of the shuffle property. More...
|
| |
Extend libdap::Array so that a handler can read data using a DMR++ file.
- Note
- A key feature of HDF5 is that is can 'chunk' data, breaking up an array into a number of smaller pieces, each of which can be compressed. This code will read both array data that are chunked (and possibly compressed) as well as data that are not (essentially the entire array is written in a single 'chunk'). Because the two cases are different and susceptible to different kinds of optimizations, we have implemented two different read() methods, one for the 'no chunks' case and one for arrays 'with chunks.'
Definition at line 60 of file DmrppArray.h.
| char * dmrpp::DmrppCommon::read_atomic |
( |
const std::string & |
name | ) |
|
|
protectedvirtualinherited |
read method for the atomic types
This method is used by the specializations of BaseType::read() in the 'atomic' type classes (libdap::Byte, libdap::In32, ...) to read data when those data are contained in a single chunk (i.e., using HDF5 contiguous storage).
- Note
- It is assumed that these data are never compressed. However, it is possible to call Chunk::inflate_chunk(...) after calling this method and then call Chunk::get_rbuf() to access the decompressed data.
- Parameters
-
| name | The name of the variable, used for error messages |
- Returns
- Pointer to a char buffer holding the data.
- Exceptions
-
Definition at line 187 of file DmrppCommon.cc.