~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 21:29:18 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328212918-n7wvnpedwnkut2q8
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
typedef List<Item> List_item;
46
46
extern KEY_CREATE_INFO default_key_create_info;
47
47
 
48
 
/* Forward declaration for condition pushdown to storage engine */
49
 
typedef class Item COND;
50
 
 
51
 
typedef struct system_status_var system_status_var;
52
 
 
53
 
namespace optimizer { class CostVector; }
54
 
namespace plugin { class StorageEngine; }
55
 
 
56
48
/*
57
49
  bitmap with first N+1 bits set
58
50
  (keypart_map for a key prefix of [0..N] keyparts)
59
51
*/
60
 
template<class T>
61
 
inline key_part_map make_keypart_map(T a)
 
52
inline key_part_map make_keypart_map(int a)
62
53
{
63
54
  return (((key_part_map)2 << a) - 1);
64
55
}
67
58
  bitmap with first N bits set
68
59
  (keypart_map for a key prefix of [0..N-1] keyparts)
69
60
*/
70
 
template<class T>
71
 
inline key_part_map make_prev_keypart_map(T a)
 
61
inline key_part_map make_prev_keypart_map(int a)
72
62
{
73
63
  return (((key_part_map)1 << a) - 1);
74
64
}
621
611
/* basic stuff */
622
612
void ha_init_errors(void);
623
613
 
624
 
class SortField;
625
614
SortField *make_unireg_sortorder(Order *order, uint32_t *length,
626
615
                                 SortField *sortorder);
627
616
int setup_order(Session *session, Item **ref_pointer_array, TableList *tables,