18 #ifndef KERNEL_NDBINFO_HPP
19 #define KERNEL_NDBINFO_HPP
21 #include <signaldata/DbinfoScan.hpp>
43 TRANSPORTERS_TABLEID = 4,
44 LOGSPACES_TABLEID = 5,
45 LOGBUFFERS_TABLEID = 6,
46 RESOURCES_TABLEID = 7,
49 DISKPAGEBUFFER_TABLEID = 10
61 int columns(
void)
const {
65 static int getNumTables();
66 static const Table& getTable(
int i);
67 static const Table& getTable(Uint32
i);
82 Uint32 getLength(
void)
const {
83 return (Uint32)(curr - start);
86 Uint32* getDataPtr()
const {
90 void write_string(
const char* col);
91 void write_uint32(Uint32 value);
92 void write_uint64(Uint64 value);
94 int columns(
void)
const {
100 void check_attribute_type(
class AttributeHeader& ah, ColumnType)
const;
106 Uint32 saveSenderRef;
123 STATIC_CONST( Length = 10 );
125 STATIC_CONST( MOREDATA_SHIFT = 0 );
126 STATIC_CONST( MOREDATA_MASK = 1 );
128 static bool getHasMoreData(
const UintR &
flags){
129 return (
bool)((flags >> MOREDATA_SHIFT) & MOREDATA_MASK);
131 static void setHasMoreData(UintR & flags,
bool value){
132 flags = (flags & ~(MOREDATA_MASK << MOREDATA_SHIFT)) |
133 ((value & MOREDATA_MASK) << MOREDATA_SHIFT);
150 const Uint32 MAX_ROWS = 256;
153 Uint32 maxRows = scan.maxRows ? scan.maxRows : MAX_ROWS;
156 if (maxRows > MAX_ROWS)
159 if (maxRows != 0 && rows >= maxRows)
161 if (scan.maxBytes != 0 && bytes >= scan.maxBytes)
168 const char* poolname;
173 Uint32 config_params[4];
177 ATTRINFO_COUNTER = 1,
178 TRANSACTIONS_COUNTER = 2,
181 SIMPLE_READS_COUNTER = 5,
184 TABLE_SCANS_COUNTER = 8,
185 RANGE_SCANS_COUNTER = 9,
186 OPERATIONS_COUNTER = 10,
188 SPJ_READS_RECEIVED_COUNTER = 11,
189 SPJ_LOCAL_READS_SENT_COUNTER = 12,
190 SPJ_REMOTE_READS_SENT_COUNTER = 13,
191 SPJ_READS_NOT_FOUND_COUNTER = 14,
192 SPJ_TABLE_SCANS_RECEIVED_COUNTER = 15,
193 SPJ_LOCAL_TABLE_SCANS_SENT_COUNTER = 16,
194 SPJ_RANGE_SCANS_RECEIVED_COUNTER = 17,
195 SPJ_LOCAL_RANGE_SCANS_SENT_COUNTER = 18,
196 SPJ_REMOTE_RANGE_SCANS_SENT_COUNTER = 19,
197 SPJ_SCAN_BATCHES_RETURNED_COUNTER = 20,
198 SPJ_SCAN_ROWS_RETURNED_COUNTER = 21,
199 SPJ_PRUNED_RANGE_SCANS_RECEIVED_COUNTER = 22,
200 SPJ_CONST_PRUNED_RANGE_SCANS_RECEIVED_COUNTER = 23