Repository URL to install this package:
|
Version:
7.7.1 ▾
|
#ifndef org_apache_lucene_search_spell_SpellChecker_H
#define org_apache_lucene_search_spell_SpellChecker_H
#include "java/lang/Object.h"
namespace java {
namespace lang {
class Class;
class String;
}
namespace io {
class IOException;
class Closeable;
}
namespace util {
class Comparator;
}
}
namespace org {
namespace apache {
namespace lucene {
namespace index {
class IndexReader;
class IndexWriterConfig;
}
namespace search {
namespace spell {
class SuggestWord;
class SuggestMode;
class Dictionary;
class StringDistance;
}
}
namespace store {
class Directory;
}
}
}
}
template<class T> class JArray;
namespace org {
namespace apache {
namespace lucene {
namespace search {
namespace spell {
class SpellChecker : public ::java::lang::Object {
public:
enum {
mid_init$_c65c15e8ea3ac336,
mid_init$_b0e42f1d32c82f13,
mid_init$_7062c4e1fbfd2fa2,
mid_clearIndex_d7775b228e076e62,
mid_close_d7775b228e076e62,
mid_exist_fe195507b81318e5,
mid_getAccuracy_2d3e9e78eeb8f24f,
mid_getComparator_a6275482e84fdb8d,
mid_getStringDistance_908a241c8434c1f8,
mid_indexDictionary_6a9476bb07a4242b,
mid_setAccuracy_735109f3a68e4236,
mid_setComparator_8c146efa80f501d0,
mid_setSpellIndex_c65c15e8ea3ac336,
mid_setStringDistance_3da862de3d1310a7,
mid_suggestSimilar_c8ddc4dc4da79de4,
mid_suggestSimilar_fcb6459b9485796e,
mid_suggestSimilar_9f56736d743463a9,
mid_suggestSimilar_26f9684694ed6710,
max_mid
};
static ::java::lang::Class *class$;
static jmethodID *mids$;
static bool live$;
static jclass initializeClass(bool);
explicit SpellChecker(jobject obj) : ::java::lang::Object(obj) {
if (obj != NULL && mids$ == NULL)
env->getClass(initializeClass);
}
SpellChecker(const SpellChecker& obj) : ::java::lang::Object(obj) {}
static jfloat DEFAULT_ACCURACY;
static ::java::lang::String *F_WORD;
SpellChecker(const ::org::apache::lucene::store::Directory &);
SpellChecker(const ::org::apache::lucene::store::Directory &, const ::org::apache::lucene::search::spell::StringDistance &);
SpellChecker(const ::org::apache::lucene::store::Directory &, const ::org::apache::lucene::search::spell::StringDistance &, const ::java::util::Comparator &);
void clearIndex() const;
void close() const;
jboolean exist(const ::java::lang::String &) const;
jfloat getAccuracy() const;
::java::util::Comparator getComparator() const;
::org::apache::lucene::search::spell::StringDistance getStringDistance() const;
void indexDictionary(const ::org::apache::lucene::search::spell::Dictionary &, const ::org::apache::lucene::index::IndexWriterConfig &, jboolean) const;
void setAccuracy(jfloat) const;
void setComparator(const ::java::util::Comparator &) const;
void setSpellIndex(const ::org::apache::lucene::store::Directory &) const;
void setStringDistance(const ::org::apache::lucene::search::spell::StringDistance &) const;
JArray< ::java::lang::String > suggestSimilar(const ::java::lang::String &, jint) const;
JArray< ::java::lang::String > suggestSimilar(const ::java::lang::String &, jint, jfloat) const;
JArray< ::java::lang::String > suggestSimilar(const ::java::lang::String &, jint, const ::org::apache::lucene::index::IndexReader &, const ::java::lang::String &, const ::org::apache::lucene::search::spell::SuggestMode &) const;
JArray< ::java::lang::String > suggestSimilar(const ::java::lang::String &, jint, const ::org::apache::lucene::index::IndexReader &, const ::java::lang::String &, const ::org::apache::lucene::search::spell::SuggestMode &, jfloat) const;
};
}
}
}
}
}
#include <Python.h>
namespace org {
namespace apache {
namespace lucene {
namespace search {
namespace spell {
extern PyType_Def PY_TYPE_DEF(SpellChecker);
extern PyTypeObject *PY_TYPE(SpellChecker);
class t_SpellChecker {
public:
PyObject_HEAD
SpellChecker object;
static PyObject *wrap_Object(const SpellChecker&);
static PyObject *wrap_jobject(const jobject&);
static void install(PyObject *module);
static void initialize(PyObject *module);
};
}
}
}
}
}
#endif