~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-10-20 20:26:18 UTC
  • mfrom: (1859.2.13 refactor)
  • Revision ID: brian@tangent.org-20101020202618-9222n39lm329urv5
Merge for Brian 

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 */
62
62
class Table 
63
63
{
64
 
  TableShare *_share; /**< Pointer to the shared metadata about the table */
65
 
 
66
64
  Field **field; /**< Pointer to fields collection */
67
65
public:
68
66
 
370
368
  void resetTable(Session *session, TableShare *share, uint32_t db_stat_arg);
371
369
 
372
370
  /* SHARE methods */
373
 
  virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
374
 
  virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
375
 
  bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
376
 
  virtual void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
377
 
  uint32_t sizeKeys() { return _share->sizeKeys(); }
378
 
  uint32_t sizeFields() { return _share->sizeFields(); }
379
 
  uint32_t getRecordLength() const { return _share->getRecordLength(); }
380
 
  uint32_t sizeBlobFields() { return _share->blob_fields; }
381
 
  uint32_t *getBlobField() { return &_share->blob_field[0]; }
 
371
  virtual const TableShare *getShare() const= 0; /* Get rid of this long term */
 
372
  virtual TableShare *getMutableShare()= 0; /* Get rid of this long term */
 
373
  virtual bool hasShare() const= 0; /* Get rid of this long term */
 
374
  virtual void setShare(TableShare *new_share)= 0; /* Get rid of this long term */
 
375
 
 
376
  uint32_t sizeKeys() { return getMutableShare()->sizeKeys(); }
 
377
  uint32_t sizeFields() { return getMutableShare()->sizeFields(); }
 
378
  uint32_t getRecordLength() const { return getShare()->getRecordLength(); }
 
379
  uint32_t sizeBlobFields() { return getMutableShare()->blob_fields; }
 
380
  uint32_t *getBlobField() { return &getMutableShare()->blob_field[0]; }
382
381
 
383
382
public:
384
383
  virtual bool hasVariableWidth() const