OmniSciDB
a5dc49c757
|
#include <PassThroughBuffer.h>
Public Member Functions | |
PassThroughBuffer (const int8_t *data, const size_t data_byte_size) | |
PassThroughBuffer ()=delete | |
void | read (int8_t *const destination, const size_t num_bytes, const size_t offset=0, const MemoryLevel destination_buffer_type=CPU_LEVEL, const int destination_device_id=-1) override |
void | write (int8_t *source, const size_t num_bytes, const size_t offset=0, const MemoryLevel source_buffer_type=CPU_LEVEL, const int source_device_id=-1) override |
void | reserve (size_t additional_num_bytes) override |
void | append (int8_t *source, const size_t num_bytes, const MemoryLevel source_buffer_type=CPU_LEVEL, const int device_id=-1) override |
int8_t * | getMemoryPtr () override |
size_t | pageCount () const override |
size_t | pageSize () const override |
size_t | reservedSize () const override |
MemoryLevel | getType () const override |
Public Member Functions inherited from Data_Namespace::AbstractBuffer | |
AbstractBuffer (const int device_id) | |
AbstractBuffer (const int device_id, const SQLTypeInfo sql_type) | |
virtual | ~AbstractBuffer () |
virtual void | setMemoryPtr (int8_t *new_ptr) |
virtual int | pin () |
virtual int | unPin () |
virtual int | getPinCount () |
size_t | size () const |
int | getDeviceId () const |
bool | isDirty () const |
bool | isAppended () const |
bool | isUpdated () const |
bool | hasEncoder () const |
SQLTypeInfo | getSqlType () const |
void | setSqlType (const SQLTypeInfo &sql_type) |
Encoder * | getEncoder () const |
void | setDirty () |
void | setUpdated () |
void | setAppended () |
void | setSize (const size_t size) |
void | clearDirtyBits () |
void | initEncoder (const SQLTypeInfo &tmp_sql_type) |
void | syncEncoder (const AbstractBuffer *src_buffer) |
void | copyTo (AbstractBuffer *destination_buffer, const size_t num_bytes=0) |
void | resetToEmpty () |
Private Attributes | |
int8_t * | data_ptr_ |
size_t | data_byte_size_ |
Additional Inherited Members | |
Protected Attributes inherited from Data_Namespace::AbstractBuffer | |
std::unique_ptr< Encoder > | encoder_ |
SQLTypeInfo | sql_type_ |
size_t | size_ |
int | device_id_ |
PassThroughBuffer
wraps a pointer with specifed data size. This class does not take ownership of the pointer. The underlying buffer is never intended to be modified only read, hence the constructor takes a const
pointer.
Definition at line 31 of file PassThroughBuffer.h.
foreign_storage::PassThroughBuffer::PassThroughBuffer | ( | const int8_t * | data, |
const size_t | data_byte_size | ||
) |
Definition at line 21 of file PassThroughBuffer.cpp.
References data_byte_size_, and Data_Namespace::AbstractBuffer::setSize().
|
delete |
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 41 of file PassThroughBuffer.cpp.
References UNREACHABLE.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 49 of file PassThroughBuffer.cpp.
References data_ptr_.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 59 of file PassThroughBuffer.cpp.
References Data_Namespace::CPU_LEVEL.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 72 of file PassThroughBuffer.cpp.
References UNREACHABLE.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 78 of file PassThroughBuffer.cpp.
References UNREACHABLE.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 28 of file PassThroughBuffer.cpp.
References data_ptr_.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 36 of file PassThroughBuffer.cpp.
References UNREACHABLE.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 53 of file PassThroughBuffer.cpp.
References UNREACHABLE.
|
overridevirtual |
Implements Data_Namespace::AbstractBuffer.
Definition at line 63 of file PassThroughBuffer.cpp.
References UNREACHABLE.
|
private |
Definition at line 63 of file PassThroughBuffer.h.
Referenced by PassThroughBuffer().
|
private |
Definition at line 62 of file PassThroughBuffer.h.
Referenced by getMemoryPtr(), and read().