19 namespace foreign_storage {
20 template <
typename Type>
23 template <
typename Type>
25 int8_t*
const destination,
26 const size_t num_bytes,
29 const int destination_device_id) {
33 template <
typename Type>
38 template <
typename Type>
41 const size_t num_bytes,
43 const int device_id) {
47 template <
typename Type>
53 template <
typename Type>
59 template <
typename Type>
65 template <
typename Type>
68 const size_t num_bytes,
71 const int source_device_id) {
75 template <
typename Type>
81 template <
typename Type>
87 template <
typename Type>
89 buffer_.reserve(buffer_.size() + additional_num_elements);
92 template <
typename Type>
94 buffer_.push_back(element);
97 template <
typename Type>
void append(int8_t *source, const size_t num_bytes, const Data_Namespace::MemoryLevel source_buffer_type=Data_Namespace::CPU_LEVEL, const int device_id=-1) override
void read(int8_t *const destination, const size_t num_bytes, const size_t offset=0, const Data_Namespace::MemoryLevel destination_buffer_type=Data_Namespace::CPU_LEVEL, const int destination_device_id=-1) override
size_t reservedSize() const override
int8_t * getMemoryPtr() override
void reserve(size_t additional_num_bytes) override
std::vector< Type > * getBufferPtr()
size_t pageCount() const override
void write(int8_t *source, const size_t num_bytes, const size_t offset=0, const Data_Namespace::MemoryLevel source_buffer_type=Data_Namespace::CPU_LEVEL, const int source_device_id=-1) override
size_t pageSize() const override
TypedParquetStorageBuffer()
void reserveNumElements(size_t additional_num_elements)
Data_Namespace::MemoryLevel getType() const override
void appendElement(const Type &element)