TrinityCore
DB2FileLoaderImpl Class Referenceabstract
+ Inheritance diagram for DB2FileLoaderImpl:

Public Member Functions

 DB2FileLoaderImpl ()=default
 
 DB2FileLoaderImpl (DB2FileLoaderImpl const &other)=delete
 
 DB2FileLoaderImpl (DB2FileLoaderImpl &&other) noexcept=delete
 
DB2FileLoaderImploperator= (DB2FileLoaderImpl const &other)=delete
 
DB2FileLoaderImploperator= (DB2FileLoaderImpl &&other) noexcept=delete
 
virtual ~DB2FileLoaderImpl ()=default
 
virtual void LoadColumnData (std::unique_ptr< DB2SectionHeader[]> sections, std::unique_ptr< DB2FieldEntry[]> fields, std::unique_ptr< DB2ColumnMeta[]> columnMeta, std::unique_ptr< std::unique_ptr< DB2PalletValue[]>[]> palletValues, std::unique_ptr< std::unique_ptr< DB2PalletValue[]>[]> palletArrayValues, std::unique_ptr< std::unordered_map< uint32, uint32 >[]> commonValues)=0
 
virtual void SkipEncryptedSection (uint32 section)=0
 
virtual bool LoadTableData (DB2FileSource *source, uint32 section)=0
 
virtual bool LoadCatalogData (DB2FileSource *source, uint32 section)=0
 
virtual void SetAdditionalData (std::vector< uint32 > idTable, std::vector< DB2RecordCopy > copyTable, std::vector< std::vector< DB2IndexData > > parentIndexes)=0
 
virtual char * AutoProduceData (uint32 &indexTableSize, char **&indexTable)=0
 
virtual char * AutoProduceStrings (char **indexTable, uint32 indexTableSize, uint32 locale)=0
 
virtual void AutoProduceRecordCopies (uint32 records, char **indexTable, char *dataTable)=0
 
virtual DB2Record GetRecord (uint32 recordNumber) const =0
 
virtual DB2RecordCopy GetRecordCopy (uint32 copyNumber) const =0
 
virtual uint32 GetRecordCount () const =0
 
virtual uint32 GetRecordCopyCount () const =0
 
virtual uint32 GetMinId () const =0
 
virtual uint32 GetMaxId () const =0
 
virtual DB2FileLoadInfo const * GetLoadInfo () const =0
 
virtual DB2SectionHeaderGetSection (uint32 section) const =0
 
virtual bool IsSignedField (uint32 field) const =0
 
virtual char const * GetExpectedSignMismatchReason (uint32 field) const =0
 

Private Member Functions

virtual unsigned char const * GetRawRecordData (uint32 recordNumber, uint32 const *section) const =0
 
virtual uint32 RecordGetId (uint8 const *record, uint32 recordIndex) const =0
 
virtual uint8 RecordGetUInt8 (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual uint16 RecordGetUInt16 (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual uint32 RecordGetUInt32 (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual int32 RecordGetInt32 (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual uint64 RecordGetUInt64 (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual float RecordGetFloat (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual char const * RecordGetString (uint8 const *record, uint32 field, uint32 arrayIndex) const =0
 
virtual std::size_t * RecordCreateDetachedFieldOffsets (std::size_t *oldOffsets) const =0
 
virtual std::size_t * RecordCopyDetachedFieldOffsets (std::size_t *oldOffsets) const =0
 
virtual void RecordDestroyFieldOffsets (std::size_t *&fieldOffsets) const =0
 

Friends

class DB2Record
 

Detailed Description

Definition at line 158 of file DB2FileLoader.cpp.

Constructor & Destructor Documentation

◆ DB2FileLoaderImpl() [1/3]

DB2FileLoaderImpl::DB2FileLoaderImpl ( )
default

◆ DB2FileLoaderImpl() [2/3]

DB2FileLoaderImpl::DB2FileLoaderImpl ( DB2FileLoaderImpl const &  other)
delete

◆ DB2FileLoaderImpl() [3/3]

DB2FileLoaderImpl::DB2FileLoaderImpl ( DB2FileLoaderImpl &&  other)
deletenoexcept

◆ ~DB2FileLoaderImpl()

virtual DB2FileLoaderImpl::~DB2FileLoaderImpl ( )
virtualdefault

Member Function Documentation

◆ AutoProduceData()

virtual char * DB2FileLoaderImpl::AutoProduceData ( uint32 indexTableSize,
char **&  indexTable 
)
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ AutoProduceRecordCopies()

virtual void DB2FileLoaderImpl::AutoProduceRecordCopies ( uint32  records,
char **  indexTable,
char *  dataTable 
)
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ AutoProduceStrings()

virtual char * DB2FileLoaderImpl::AutoProduceStrings ( char **  indexTable,
uint32  indexTableSize,
uint32  locale 
)
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetExpectedSignMismatchReason()

virtual char const * DB2FileLoaderImpl::GetExpectedSignMismatchReason ( uint32  field) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetLoadInfo()

virtual DB2FileLoadInfo const * DB2FileLoaderImpl::GetLoadInfo ( ) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetMaxId()

virtual uint32 DB2FileLoaderImpl::GetMaxId ( ) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetMinId()

virtual uint32 DB2FileLoaderImpl::GetMinId ( ) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetRawRecordData()

virtual unsigned char const * DB2FileLoaderImpl::GetRawRecordData ( uint32  recordNumber,
uint32 const *  section 
) const
privatepure virtual

◆ GetRecord()

virtual DB2Record DB2FileLoaderImpl::GetRecord ( uint32  recordNumber) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetRecordCopy()

virtual DB2RecordCopy DB2FileLoaderImpl::GetRecordCopy ( uint32  copyNumber) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetRecordCopyCount()

virtual uint32 DB2FileLoaderImpl::GetRecordCopyCount ( ) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetRecordCount()

virtual uint32 DB2FileLoaderImpl::GetRecordCount ( ) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ GetSection()

virtual DB2SectionHeader & DB2FileLoaderImpl::GetSection ( uint32  section) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ IsSignedField()

virtual bool DB2FileLoaderImpl::IsSignedField ( uint32  field) const
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ LoadCatalogData()

virtual bool DB2FileLoaderImpl::LoadCatalogData ( DB2FileSource source,
uint32  section 
)
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ LoadColumnData()

virtual void DB2FileLoaderImpl::LoadColumnData ( std::unique_ptr< DB2SectionHeader[]>  sections,
std::unique_ptr< DB2FieldEntry[]>  fields,
std::unique_ptr< DB2ColumnMeta[]>  columnMeta,
std::unique_ptr< std::unique_ptr< DB2PalletValue[]>[]>  palletValues,
std::unique_ptr< std::unique_ptr< DB2PalletValue[]>[]>  palletArrayValues,
std::unique_ptr< std::unordered_map< uint32, uint32 >[]>  commonValues 
)
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ LoadTableData()

virtual bool DB2FileLoaderImpl::LoadTableData ( DB2FileSource source,
uint32  section 
)
pure virtual

Implemented in DB2FileLoaderSparseImpl, and DB2FileLoaderRegularImpl.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

DB2FileLoaderImpl & DB2FileLoaderImpl::operator= ( DB2FileLoaderImpl &&  other)
deletenoexcept

◆ operator=() [2/2]

DB2FileLoaderImpl & DB2FileLoaderImpl::operator= ( DB2FileLoaderImpl const &  other)
delete

◆ RecordCopyDetachedFieldOffsets()

virtual std::size_t * DB2FileLoaderImpl::RecordCopyDetachedFieldOffsets ( std::size_t *  oldOffsets) const
privatepure virtual

◆ RecordCreateDetachedFieldOffsets()

virtual std::size_t * DB2FileLoaderImpl::RecordCreateDetachedFieldOffsets ( std::size_t *  oldOffsets) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordDestroyFieldOffsets()

virtual void DB2FileLoaderImpl::RecordDestroyFieldOffsets ( std::size_t *&  fieldOffsets) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetFloat()

virtual float DB2FileLoaderImpl::RecordGetFloat ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetId()

virtual uint32 DB2FileLoaderImpl::RecordGetId ( uint8 const *  record,
uint32  recordIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetInt32()

virtual int32 DB2FileLoaderImpl::RecordGetInt32 ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetString()

virtual char const * DB2FileLoaderImpl::RecordGetString ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetUInt16()

virtual uint16 DB2FileLoaderImpl::RecordGetUInt16 ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetUInt32()

virtual uint32 DB2FileLoaderImpl::RecordGetUInt32 ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetUInt64()

virtual uint64 DB2FileLoaderImpl::RecordGetUInt64 ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ RecordGetUInt8()

virtual uint8 DB2FileLoaderImpl::RecordGetUInt8 ( uint8 const *  record,
uint32  field,
uint32  arrayIndex 
) const
privatepure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ SetAdditionalData()

virtual void DB2FileLoaderImpl::SetAdditionalData ( std::vector< uint32 idTable,
std::vector< DB2RecordCopy copyTable,
std::vector< std::vector< DB2IndexData > >  parentIndexes 
)
pure virtual

Implemented in DB2FileLoaderRegularImpl, and DB2FileLoaderSparseImpl.

+ Here is the caller graph for this function:

◆ SkipEncryptedSection()

virtual void DB2FileLoaderImpl::SkipEncryptedSection ( uint32  section)
pure virtual

Implemented in DB2FileLoaderSparseImpl, and DB2FileLoaderRegularImpl.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ DB2Record

friend class DB2Record
friend

Definition at line 189 of file DB2FileLoader.cpp.


The documentation for this class was generated from the following file: