~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2010-10-20 20:41:00 UTC
  • mfrom: (1863 staging)
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: barry.leslie@primebase.com-20101020204100-oyj6p5cfssjw3p62
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
  /* SHARE methods */
373
373
  virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
374
374
  virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
375
 
  inline bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
376
 
  inline void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
377
 
  inline uint32_t sizeKeys() { return _share->sizeKeys(); }
378
 
  inline uint32_t sizeFields() { return _share->sizeFields(); }
379
 
  inline uint32_t getRecordLength() const { return _share->getRecordLength(); }
380
 
  inline uint32_t sizeBlobFields() { return _share->blob_fields; }
381
 
  inline uint32_t *getBlobField() { return &_share->blob_field[0]; }
 
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]; }
382
382
 
383
383
public:
384
384
  virtual bool hasVariableWidth() const
422
422
    return *cursor;
423
423
  }
424
424
 
425
 
  /* For TMP tables, should be pulled out as a class */
426
 
  void setup_tmp_table_column_bitmaps();
427
 
  bool create_myisam_tmp_table(KeyInfo *keyinfo,
428
 
                               MI_COLUMNDEF *start_recinfo,
429
 
                               MI_COLUMNDEF **recinfo,
430
 
                               uint64_t options);
431
 
  void free_tmp_table(Session *session);
432
 
  bool open_tmp_table();
433
425
  size_t max_row_length(const unsigned char *data);
434
426
  uint32_t find_shortest_key(const key_map *usable_keys);
435
427
  bool compare_record(Field **ptr);
637
629
    return output;  // for multiple << operators.
638
630
  }
639
631
 
640
 
protected:
641
 
  bool is_placeholder_created;
642
 
 
643
632
public:
644
 
  bool isPlaceHolder()
 
633
  virtual bool isPlaceHolder(void) const
645
634
  {
646
 
    return is_placeholder_created;
 
635
    return false;
647
636
  }
648
637
};
649
638
 
868
857
 
869
858
} /* namespace drizzled */
870
859
 
 
860
#include "drizzled/table/instance.h"
 
861
#include "drizzled/table/concurrent.h"
 
862
 
871
863
#endif /* DRIZZLED_TABLE_H */