fulltext.h
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. /* Written by Sergei A. Golubchik, who has a shared copyright to this code */
  14. /* some definitions for full-text indices */
  15. #include "myisamdef.h"
  16. #include "ft_global.h"
  17. /* shoudn't be def'ed when linking with mysql */
  18. #undef EVAL_RUN
  19. #define HA_FT_MAXLEN 254
  20. #define HA_FT_WTYPE  HA_KEYTYPE_FLOAT
  21. #define HA_FT_WLEN   4
  22. #ifdef EVAL_RUN
  23. #define FT_SEGS      3
  24. #else /* EVAL_RUN */
  25. #define FT_SEGS      2
  26. #endif /* EVAL_RUN */
  27. extern const MI_KEYSEG ft_keysegs[FT_SEGS];
  28. int  _mi_ft_cmp(MI_INFO *, uint, const byte *, const byte *);
  29. int  _mi_ft_add(MI_INFO *, uint, byte *, const byte *, my_off_t);
  30. int  _mi_ft_del(MI_INFO *, uint, byte *, const byte *, my_off_t);