Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lucene / include / org / apache / lucene / search / spell / DirectSpellChecker.h
Size: Mime:
#ifndef org_apache_lucene_search_spell_DirectSpellChecker_H
#define org_apache_lucene_search_spell_DirectSpellChecker_H

#include "java/lang/Object.h"

namespace java {
  namespace lang {
    class Class;
  }
  namespace io {
    class IOException;
  }
  namespace util {
    class Comparator;
  }
}
namespace org {
  namespace apache {
    namespace lucene {
      namespace search {
        namespace spell {
          class SuggestWord;
          class SuggestMode;
          class StringDistance;
        }
      }
      namespace index {
        class Term;
        class IndexReader;
      }
    }
  }
}
template<class T> class JArray;

namespace org {
  namespace apache {
    namespace lucene {
      namespace search {
        namespace spell {

          class DirectSpellChecker : public ::java::lang::Object {
           public:
            enum {
              mid_init$_d7775b228e076e62,
              mid_getAccuracy_2d3e9e78eeb8f24f,
              mid_getComparator_a6275482e84fdb8d,
              mid_getDistance_908a241c8434c1f8,
              mid_getLowerCaseTerms_c20c2fcd6b89d9a9,
              mid_getMaxEdits_9135e6328d9d7dfd,
              mid_getMaxInspections_9135e6328d9d7dfd,
              mid_getMaxQueryFrequency_2d3e9e78eeb8f24f,
              mid_getMinPrefix_9135e6328d9d7dfd,
              mid_getMinQueryLength_9135e6328d9d7dfd,
              mid_getThresholdFrequency_2d3e9e78eeb8f24f,
              mid_setAccuracy_735109f3a68e4236,
              mid_setComparator_8c146efa80f501d0,
              mid_setDistance_3da862de3d1310a7,
              mid_setLowerCaseTerms_8a3e0c1a306942cb,
              mid_setMaxEdits_54889bef30791899,
              mid_setMaxInspections_54889bef30791899,
              mid_setMaxQueryFrequency_735109f3a68e4236,
              mid_setMinPrefix_54889bef30791899,
              mid_setMinQueryLength_54889bef30791899,
              mid_setThresholdFrequency_735109f3a68e4236,
              mid_suggestSimilar_1e1315b79b54ed49,
              mid_suggestSimilar_4c9d716c0ad9c274,
              mid_suggestSimilar_814bee3207f0e808,
              mid_suggestSimilar_2b030125a091cd10,
              max_mid
            };

            static ::java::lang::Class *class$;
            static jmethodID *mids$;
            static bool live$;
            static jclass initializeClass(bool);

            explicit DirectSpellChecker(jobject obj) : ::java::lang::Object(obj) {
              if (obj != NULL && mids$ == NULL)
                env->getClass(initializeClass);
            }
            DirectSpellChecker(const DirectSpellChecker& obj) : ::java::lang::Object(obj) {}

            static ::org::apache::lucene::search::spell::StringDistance *INTERNAL_LEVENSHTEIN;

            DirectSpellChecker();

            jfloat getAccuracy() const;
            ::java::util::Comparator getComparator() const;
            ::org::apache::lucene::search::spell::StringDistance getDistance() const;
            jboolean getLowerCaseTerms() const;
            jint getMaxEdits() const;
            jint getMaxInspections() const;
            jfloat getMaxQueryFrequency() const;
            jint getMinPrefix() const;
            jint getMinQueryLength() const;
            jfloat getThresholdFrequency() const;
            void setAccuracy(jfloat) const;
            void setComparator(const ::java::util::Comparator &) const;
            void setDistance(const ::org::apache::lucene::search::spell::StringDistance &) const;
            void setLowerCaseTerms(jboolean) const;
            void setMaxEdits(jint) const;
            void setMaxInspections(jint) const;
            void setMaxQueryFrequency(jfloat) const;
            void setMinPrefix(jint) const;
            void setMinQueryLength(jint) const;
            void setThresholdFrequency(jfloat) const;
            JArray< ::org::apache::lucene::search::spell::SuggestWord > suggestSimilar(const ::org::apache::lucene::index::Term &, jint, const ::org::apache::lucene::index::IndexReader &) const;
            JArray< ::org::apache::lucene::search::spell::SuggestWord > suggestSimilar(const ::org::apache::lucene::index::Term &, jint, const ::org::apache::lucene::index::IndexReader &, const ::org::apache::lucene::search::spell::SuggestMode &) const;
            JArray< ::org::apache::lucene::search::spell::SuggestWord > suggestSimilar(const ::org::apache::lucene::index::Term &, jint, const ::org::apache::lucene::index::IndexReader &, 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(DirectSpellChecker);
          extern PyTypeObject *PY_TYPE(DirectSpellChecker);

          class t_DirectSpellChecker {
          public:
            PyObject_HEAD
            DirectSpellChecker object;
            static PyObject *wrap_Object(const DirectSpellChecker&);
            static PyObject *wrap_jobject(const jobject&);
            static void install(PyObject *module);
            static void initialize(PyObject *module);
          };
        }
      }
    }
  }
}

#endif