~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/function.h

  • Committer: Lee Bieber
  • Date: 2010-11-07 19:34:48 UTC
  • mfrom: (1910.1.2 build)
  • Revision ID: kalebral@gmail.com-20101107193448-64kdu912qej354sh
Merge Stewart - including adapting and expanding the "differences from mysql" page from the wiki.
Merge Stewart - fix bug 668143: drizzleslap with --commit runs second iteration data load in a transaction

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
#define DRIZZLED_PLUGIN_FUNCTION_H
22
22
 
23
23
 
24
 
#include <drizzled/item/func.h>
25
 
#include <drizzled/plugin.h>
26
 
#include <drizzled/plugin/plugin.h>
 
24
#include "drizzled/plugin/plugin.h"
 
25
#include "drizzled/item/func.h"
27
26
 
28
27
#include <string>
29
28
#include <vector>
30
29
#include <functional>
31
30
 
32
 
#include <boost/unordered_map.hpp>
33
 
 
34
 
#include "drizzled/visibility.h"
35
 
 
36
31
namespace drizzled
37
32
{
38
33
 
43
38
  class Root;
44
39
}
45
40
 
46
 
namespace util
47
 
{
48
 
struct insensitive_hash;
49
 
struct insensitive_equal_to;
50
 
}
51
 
 
52
41
namespace plugin
53
42
{
54
43
 
55
44
/**
56
45
 * Functions in the server: AKA UDF
57
46
 */
58
 
class DRIZZLED_API Function
 
47
class Function
59
48
  : public Plugin,
60
49
    public std::unary_function<memory::Root*, Item_func *>
61
50
{
80
69
   */
81
70
  static void removePlugin(const plugin::Function *function_obj);
82
71
 
 
72
  /**
 
73
   * Accept a new connection (Protocol object) on one of the configured
 
74
   * listener interfaces.
 
75
   */
83
76
  static const plugin::Function *get(const char *name, size_t len=0);
84
77
 
85
78
  typedef boost::unordered_map<std::string, const plugin::Function *, util::insensitive_hash, util::insensitive_equal_to> UdfMap;
86
 
  typedef boost::unordered_map<std::string, const plugin::Function *, util::insensitive_hash, util::insensitive_equal_to> Map;
87
79
 
88
80
  static const UdfMap &getMap();
89
81
};