mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Import ndb varsize
BitKeeper/deleted/.del-MetaData.cpp~146ae9865dd35829: Delete: storage/ndb/src/kernel/vm/MetaData.cpp BitKeeper/deleted/.del-MetaData.hpp~538342afcd8ac53c: Delete: storage/ndb/src/kernel/vm/MetaData.hpp BitKeeper/deleted/.del-DbtupLCP.cpp~855b1ed3fbc86a42: Delete: storage/ndb/src/kernel/blocks/dbtup/DbtupLCP.cpp BitKeeper/deleted/.del-DbtupSystemRestart.cpp~15b54d7e4e75d2d: Delete: storage/ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp BitKeeper/deleted/.del-DbtupUndoLog.cpp~5a2ef6e86b1404e9: Delete: storage/ndb/src/kernel/blocks/dbtup/DbtupUndoLog.cpp storage/ndb/include/kernel/signaldata/CreateFilegroup.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/CreateFilegroup.hpp'' storage/ndb/include/kernel/signaldata/CreateFilegroupImpl.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/CreateFilegroupImpl.hpp'' storage/ndb/include/kernel/signaldata/CreateObj.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/CreateObj.hpp'' storage/ndb/include/kernel/signaldata/DictObjOp.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/DictObjOp.hpp'' storage/ndb/include/kernel/signaldata/DropFilegroup.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/DropFilegroup.hpp'' storage/ndb/include/kernel/signaldata/DropFilegroupImpl.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/DropFilegroupImpl.hpp'' storage/ndb/include/kernel/signaldata/DropObj.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/DropObj.hpp'' storage/ndb/include/kernel/signaldata/Extent.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/Extent.hpp'' storage/ndb/include/kernel/signaldata/LgmanContinueB.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/LgmanContinueB.hpp'' storage/ndb/include/kernel/signaldata/PgmanContinueB.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/PgmanContinueB.hpp'' storage/ndb/include/kernel/signaldata/RestoreContinueB.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/RestoreContinueB.hpp'' storage/ndb/include/kernel/signaldata/RestoreImpl.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/RestoreImpl.hpp'' storage/ndb/include/kernel/signaldata/TsmanContinueB.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/TsmanContinueB.hpp'' storage/ndb/src/kernel/blocks/dbdih/printSysfile.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbdih/printSysfile.cpp'' storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp'' storage/ndb/src/kernel/blocks/dbtup/DbtupVarAlloc.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/DbtupVarAlloc.cpp'' storage/ndb/src/kernel/blocks/dbtup/Undo_buffer.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/Undo_buffer.cpp'' storage/ndb/src/kernel/blocks/dbtup/Undo_buffer.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/Undo_buffer.hpp'' storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp'' storage/ndb/src/kernel/blocks/dbtup/tuppage.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/tuppage.cpp'' storage/ndb/src/kernel/blocks/dbtup/tuppage.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/dbtup/tuppage.hpp'' storage/ndb/src/kernel/blocks/diskpage.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/diskpage.cpp'' storage/ndb/src/kernel/blocks/diskpage.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/diskpage.hpp'' storage/ndb/src/kernel/blocks/lgman.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/lgman.cpp'' storage/ndb/src/kernel/blocks/lgman.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/lgman.hpp'' storage/ndb/src/kernel/blocks/pgman.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/pgman.cpp'' storage/ndb/src/kernel/blocks/pgman.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/pgman.hpp'' storage/ndb/src/kernel/blocks/print_file.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/print_file.cpp'' storage/ndb/src/kernel/blocks/restore.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/restore.cpp'' storage/ndb/src/kernel/blocks/restore.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/restore.hpp'' storage/ndb/src/kernel/blocks/tsman.cpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/tsman.cpp'' storage/ndb/src/kernel/blocks/tsman.hpp: New BitKeeper file ``storage/ndb/src/kernel/blocks/tsman.hpp'' storage/ndb/src/kernel/vm/DLCFifoList.hpp: New BitKeeper file ``storage/ndb/src/kernel/vm/DLCFifoList.hpp'' storage/ndb/src/kernel/vm/DLCHashTable.hpp: New BitKeeper file ``storage/ndb/src/kernel/vm/DLCHashTable.hpp'' storage/ndb/src/kernel/vm/KeyTable2Ref.hpp: New BitKeeper file ``storage/ndb/src/kernel/vm/KeyTable2Ref.hpp'' storage/ndb/src/kernel/vm/Rope.cpp: New BitKeeper file ``storage/ndb/src/kernel/vm/Rope.cpp'' storage/ndb/src/kernel/vm/Rope.hpp: New BitKeeper file ``storage/ndb/src/kernel/vm/Rope.hpp''
This commit is contained in:
@@ -97,25 +97,9 @@ public:
|
||||
/**
|
||||
* Get attribute (element) size in bytes.
|
||||
*
|
||||
* @note For arrays, the method only gives the size of an element.
|
||||
* The total attribute size is calculated by
|
||||
* multiplying this value with the value
|
||||
* returned by NdbRecAttr::arraySize.
|
||||
*
|
||||
* @return Attribute size in 32 bit unsigned int.
|
||||
*/
|
||||
Uint32 attrSize() const ;
|
||||
Uint32 get_size_in_bytes() const { return m_size_in_bytes; }
|
||||
|
||||
/**
|
||||
* Get array size of attribute.
|
||||
* For variable-sized arrays this method returns the
|
||||
* size of the attribute read.
|
||||
*
|
||||
* @return array size in 32 unsigned int.
|
||||
*/
|
||||
Uint32 arraySize() const ;
|
||||
Uint32 getLength() const ;
|
||||
|
||||
/** @} *********************************************************************/
|
||||
/**
|
||||
* @name Getting stored value
|
||||
@@ -252,7 +236,8 @@ private:
|
||||
|
||||
Uint32 attrId() const; /* Get attribute id */
|
||||
bool setNULL(); /* Set NULL indicator */
|
||||
void setUNDEFINED(); /* Set UNDEFINED indicator */
|
||||
void setUNDEFINED(); //
|
||||
|
||||
bool receive_data(const Uint32*, Uint32);
|
||||
|
||||
void release(); /* Release memory if allocated */
|
||||
@@ -275,11 +260,8 @@ private:
|
||||
|
||||
NdbRecAttr* theNext; /* Next pointer */
|
||||
Uint32 theAttrId; /* The attribute id */
|
||||
|
||||
int theNULLind;
|
||||
bool m_nullable;
|
||||
Uint32 theAttrSize;
|
||||
Uint32 theArraySize;
|
||||
|
||||
Int32 m_size_in_bytes;
|
||||
const NdbDictionary::Column* m_column;
|
||||
|
||||
friend struct Ndb_free_list_t<NdbRecAttr>;
|
||||
@@ -299,19 +281,6 @@ NdbRecAttr::getColumn() const {
|
||||
return m_column;
|
||||
}
|
||||
|
||||
inline
|
||||
Uint32
|
||||
NdbRecAttr::attrSize() const {
|
||||
return theAttrSize;
|
||||
}
|
||||
|
||||
inline
|
||||
Uint32
|
||||
NdbRecAttr::arraySize() const
|
||||
{
|
||||
return theArraySize;
|
||||
}
|
||||
|
||||
inline
|
||||
Int32
|
||||
NdbRecAttr::int32_value() const
|
||||
@@ -373,7 +342,6 @@ NdbRecAttr::init()
|
||||
theRef = 0;
|
||||
theNext = 0;
|
||||
theAttrId = 0xFFFF;
|
||||
theNULLind = -1;
|
||||
}
|
||||
|
||||
inline
|
||||
@@ -422,22 +390,22 @@ inline
|
||||
bool
|
||||
NdbRecAttr::setNULL()
|
||||
{
|
||||
theNULLind = 1;
|
||||
return m_nullable;
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
NdbRecAttr::setUNDEFINED()
|
||||
{
|
||||
theNULLind = -1;
|
||||
m_size_in_bytes= 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
inline
|
||||
int
|
||||
NdbRecAttr::isNULL() const
|
||||
{
|
||||
return theNULLind;
|
||||
return m_size_in_bytes == 0 ? 1 : (m_size_in_bytes > 0 ? 0 : -1);
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
NdbRecAttr::setUNDEFINED()
|
||||
{
|
||||
m_size_in_bytes= -1;
|
||||
}
|
||||
|
||||
class NdbOut& operator <<(class NdbOut&, const NdbRecAttr &);
|
||||
|
||||
Reference in New Issue
Block a user