/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.5
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.xapian;

public class XapianJNI {
  public final static native String Version_string();
  public final static native int Version_major();
  public final static native int Version_minor();
  public final static native int Version_revision();
  public final static native int BAD_VALUENO_get();
  public final static native long new_PositionIterator__SWIG_0();
  public final static native long new_PositionIterator__SWIG_1(long jarg1, PositionIterator jarg1_);
  public final static native void delete_PositionIterator(long jarg1);
  public final static native long PositionIterator_getTermPos(long jarg1, PositionIterator jarg1_);
  public final static native long PositionIterator_next(long jarg1, PositionIterator jarg1_);
  public final static native boolean PositionIterator_equals(long jarg1, PositionIterator jarg1_, long jarg2, PositionIterator jarg2_);
  public final static native void PositionIterator_skipTo(long jarg1, PositionIterator jarg1_, long jarg2);
  public final static native String PositionIterator_toString(long jarg1, PositionIterator jarg1_);
  public final static native long new_PostingIterator__SWIG_0();
  public final static native void delete_PostingIterator(long jarg1);
  public final static native long new_PostingIterator__SWIG_1(long jarg1, PostingIterator jarg1_);
  public final static native void PostingIterator_skipTo(long jarg1, PostingIterator jarg1_, long jarg2);
  public final static native long PostingIterator_getDocLength(long jarg1, PostingIterator jarg1_);
  public final static native long PostingIterator_getWdf(long jarg1, PostingIterator jarg1_);
  public final static native long PostingIterator_positionListBegin(long jarg1, PostingIterator jarg1_);
  public final static native long PostingIterator_positionListEnd(long jarg1, PostingIterator jarg1_);
  public final static native String PostingIterator_toString(long jarg1, PostingIterator jarg1_);
  public final static native boolean PostingIterator_hasNext(long jarg1, PostingIterator jarg1_);
  public final static native long PostingIterator_getDocId(long jarg1, PostingIterator jarg1_);
  public final static native long PostingIterator_next(long jarg1, PostingIterator jarg1_);
  public final static native boolean PostingIterator_equals(long jarg1, PostingIterator jarg1_, long jarg2, PostingIterator jarg2_);
  public final static native long new_TermIterator__SWIG_0();
  public final static native long new_TermIterator__SWIG_1(long jarg1, TermIterator jarg1_);
  public final static native void delete_TermIterator(long jarg1);
  public final static native String TermIterator_getTerm(long jarg1, TermIterator jarg1_);
  public final static native String TermIterator_next(long jarg1, TermIterator jarg1_);
  public final static native boolean TermIterator_equals(long jarg1, TermIterator jarg1_, long jarg2, TermIterator jarg2_);
  public final static native void TermIterator_skipTo(long jarg1, TermIterator jarg1_, String jarg2);
  public final static native long TermIterator_getWdf(long jarg1, TermIterator jarg1_);
  public final static native long TermIterator_getTermFreq(long jarg1, TermIterator jarg1_);
  public final static native long TermIterator_positionlistCount(long jarg1, TermIterator jarg1_);
  public final static native long TermIterator_positionListBegin(long jarg1, TermIterator jarg1_);
  public final static native long TermIterator_positionListEnd(long jarg1, TermIterator jarg1_);
  public final static native String TermIterator_toString(long jarg1, TermIterator jarg1_);
  public final static native boolean TermIterator_hasNext(long jarg1, TermIterator jarg1_);
  public final static native long new_ValueIterator__SWIG_0();
  public final static native long new_ValueIterator__SWIG_1(long jarg1, ValueIterator jarg1_);
  public final static native void delete_ValueIterator(long jarg1);
  public final static native String ValueIterator_getValue(long jarg1, ValueIterator jarg1_);
  public final static native String ValueIterator_next(long jarg1, ValueIterator jarg1_);
  public final static native boolean ValueIterator_equals(long jarg1, ValueIterator jarg1_, long jarg2, ValueIterator jarg2_);
  public final static native long ValueIterator_getDocId(long jarg1, ValueIterator jarg1_);
  public final static native int ValueIterator_getValueNo(long jarg1, ValueIterator jarg1_);
  public final static native void ValueIterator_skipTo(long jarg1, ValueIterator jarg1_, long jarg2);
  public final static native boolean ValueIterator_check(long jarg1, ValueIterator jarg1_, long jarg2);
  public final static native String ValueIterator_toString(long jarg1, ValueIterator jarg1_);
  public final static native boolean ValueIterator_hasNext(long jarg1, ValueIterator jarg1_);
  public final static native long new_Document__SWIG_0(long jarg1, Document jarg1_);
  public final static native long new_Document__SWIG_1();
  public final static native void delete_Document(long jarg1);
  public final static native String Document_getValue(long jarg1, Document jarg1_, int jarg2);
  public final static native void Document_addValue(long jarg1, Document jarg1_, int jarg2, String jarg3);
  public final static native void Document_removeValue(long jarg1, Document jarg1_, int jarg2);
  public final static native void Document_clearValues(long jarg1, Document jarg1_);
  public final static native String Document_getData(long jarg1, Document jarg1_);
  public final static native void Document_setData(long jarg1, Document jarg1_, String jarg2);
  public final static native void Document_addPosting__SWIG_0(long jarg1, Document jarg1_, String jarg2, long jarg3, long jarg4);
  public final static native void Document_addPosting__SWIG_1(long jarg1, Document jarg1_, String jarg2, long jarg3);
  public final static native void Document_addTerm__SWIG_0(long jarg1, Document jarg1_, String jarg2, long jarg3);
  public final static native void Document_addTerm__SWIG_1(long jarg1, Document jarg1_, String jarg2);
  public final static native void Document_addBooleanTerm(long jarg1, Document jarg1_, String jarg2);
  public final static native void Document_removePosting__SWIG_0(long jarg1, Document jarg1_, String jarg2, long jarg3, long jarg4);
  public final static native void Document_removePosting__SWIG_1(long jarg1, Document jarg1_, String jarg2, long jarg3);
  public final static native void Document_removeTerm(long jarg1, Document jarg1_, String jarg2);
  public final static native void Document_clearTerms(long jarg1, Document jarg1_);
  public final static native long Document_termListCount(long jarg1, Document jarg1_);
  public final static native long Document_termListBegin(long jarg1, Document jarg1_);
  public final static native long Document_termListEnd(long jarg1, Document jarg1_);
  public final static native long Document_valuesCount(long jarg1, Document jarg1_);
  public final static native long Document_valuesBegin(long jarg1, Document jarg1_);
  public final static native long Document_valuesEnd(long jarg1, Document jarg1_);
  public final static native long Document_getDocId(long jarg1, Document jarg1_);
  public final static native String Document_serialise(long jarg1, Document jarg1_);
  public final static native long Document_unserialise(String jarg1);
  public final static native String Document_toString(long jarg1, Document jarg1_);
  public final static native long new_PostingSource();
  public final static native void delete_PostingSource(long jarg1);
  public final static native long PostingSource_getTermfreqMin(long jarg1, PostingSource jarg1_);
  public final static native long PostingSource_getTermfreqEst(long jarg1, PostingSource jarg1_);
  public final static native long PostingSource_getTermfreqMax(long jarg1, PostingSource jarg1_);
  public final static native double PostingSource_getMaxweight(long jarg1, PostingSource jarg1_);
  public final static native double PostingSource_getWeight(long jarg1, PostingSource jarg1_);
  public final static native double PostingSource_getWeightSwigExplicitPostingSource(long jarg1, PostingSource jarg1_);
  public final static native long PostingSource_getDocId(long jarg1, PostingSource jarg1_);
  public final static native void PostingSource_next(long jarg1, PostingSource jarg1_, double jarg2);
  public final static native void PostingSource_skipTo(long jarg1, PostingSource jarg1_, long jarg2, double jarg3);
  public final static native void PostingSource_skipToSwigExplicitPostingSource(long jarg1, PostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean PostingSource_check(long jarg1, PostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean PostingSource_checkSwigExplicitPostingSource(long jarg1, PostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean PostingSource_atEnd(long jarg1, PostingSource jarg1_);
  public final static native String PostingSource_name(long jarg1, PostingSource jarg1_);
  public final static native String PostingSource_nameSwigExplicitPostingSource(long jarg1, PostingSource jarg1_);
  public final static native void PostingSource_init(long jarg1, PostingSource jarg1_, long jarg2, Database jarg2_);
  public final static native String PostingSource_toString(long jarg1, PostingSource jarg1_);
  public final static native String PostingSource_toStringSwigExplicitPostingSource(long jarg1, PostingSource jarg1_);
  public final static native void PostingSource_director_connect(PostingSource obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void PostingSource_change_ownership(PostingSource obj, long cptr, boolean take_or_release);
  public final static native long new_ValuePostingSource(int jarg1);
  public final static native long ValuePostingSource_getTermfreqMin(long jarg1, ValuePostingSource jarg1_);
  public final static native long ValuePostingSource_getTermfreqEst(long jarg1, ValuePostingSource jarg1_);
  public final static native long ValuePostingSource_getTermfreqMax(long jarg1, ValuePostingSource jarg1_);
  public final static native void ValuePostingSource_next(long jarg1, ValuePostingSource jarg1_, double jarg2);
  public final static native void ValuePostingSource_skipTo(long jarg1, ValuePostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean ValuePostingSource_check(long jarg1, ValuePostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean ValuePostingSource_atEnd(long jarg1, ValuePostingSource jarg1_);
  public final static native long ValuePostingSource_getDocId(long jarg1, ValuePostingSource jarg1_);
  public final static native void ValuePostingSource_init(long jarg1, ValuePostingSource jarg1_, long jarg2, Database jarg2_);
  public final static native void delete_ValuePostingSource(long jarg1);
  public final static native long new_ValueWeightPostingSource(int jarg1);
  public final static native double ValueWeightPostingSource_getWeight(long jarg1, ValueWeightPostingSource jarg1_);
  public final static native String ValueWeightPostingSource_name(long jarg1, ValueWeightPostingSource jarg1_);
  public final static native void ValueWeightPostingSource_init(long jarg1, ValueWeightPostingSource jarg1_, long jarg2, Database jarg2_);
  public final static native String ValueWeightPostingSource_toString(long jarg1, ValueWeightPostingSource jarg1_);
  public final static native void delete_ValueWeightPostingSource(long jarg1);
  public final static native long new_DecreasingValueWeightPostingSource__SWIG_0(int jarg1, long jarg2, long jarg3);
  public final static native long new_DecreasingValueWeightPostingSource__SWIG_1(int jarg1, long jarg2);
  public final static native long new_DecreasingValueWeightPostingSource__SWIG_2(int jarg1);
  public final static native double DecreasingValueWeightPostingSource_getWeight(long jarg1, DecreasingValueWeightPostingSource jarg1_);
  public final static native String DecreasingValueWeightPostingSource_name(long jarg1, DecreasingValueWeightPostingSource jarg1_);
  public final static native void DecreasingValueWeightPostingSource_init(long jarg1, DecreasingValueWeightPostingSource jarg1_, long jarg2, Database jarg2_);
  public final static native void DecreasingValueWeightPostingSource_next(long jarg1, DecreasingValueWeightPostingSource jarg1_, double jarg2);
  public final static native void DecreasingValueWeightPostingSource_skipTo(long jarg1, DecreasingValueWeightPostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean DecreasingValueWeightPostingSource_check(long jarg1, DecreasingValueWeightPostingSource jarg1_, long jarg2, double jarg3);
  public final static native String DecreasingValueWeightPostingSource_toString(long jarg1, DecreasingValueWeightPostingSource jarg1_);
  public final static native void delete_DecreasingValueWeightPostingSource(long jarg1);
  public final static native long new_ValueMapPostingSource(int jarg1);
  public final static native void ValueMapPostingSource_addMapping(long jarg1, ValueMapPostingSource jarg1_, String jarg2, double jarg3);
  public final static native void ValueMapPostingSource_clearMappings(long jarg1, ValueMapPostingSource jarg1_);
  public final static native void ValueMapPostingSource_setDefaultWeight(long jarg1, ValueMapPostingSource jarg1_, double jarg2);
  public final static native double ValueMapPostingSource_getWeight(long jarg1, ValueMapPostingSource jarg1_);
  public final static native String ValueMapPostingSource_name(long jarg1, ValueMapPostingSource jarg1_);
  public final static native void ValueMapPostingSource_init(long jarg1, ValueMapPostingSource jarg1_, long jarg2, Database jarg2_);
  public final static native String ValueMapPostingSource_toString(long jarg1, ValueMapPostingSource jarg1_);
  public final static native void delete_ValueMapPostingSource(long jarg1);
  public final static native long new_FixedWeightPostingSource(double jarg1);
  public final static native long FixedWeightPostingSource_getTermfreqMin(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native long FixedWeightPostingSource_getTermfreqEst(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native long FixedWeightPostingSource_getTermfreqMax(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native double FixedWeightPostingSource_getWeight(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native void FixedWeightPostingSource_next(long jarg1, FixedWeightPostingSource jarg1_, double jarg2);
  public final static native void FixedWeightPostingSource_skipTo(long jarg1, FixedWeightPostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean FixedWeightPostingSource_check(long jarg1, FixedWeightPostingSource jarg1_, long jarg2, double jarg3);
  public final static native boolean FixedWeightPostingSource_atEnd(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native long FixedWeightPostingSource_getDocId(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native String FixedWeightPostingSource_name(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native void FixedWeightPostingSource_init(long jarg1, FixedWeightPostingSource jarg1_, long jarg2, Database jarg2_);
  public final static native String FixedWeightPostingSource_toString(long jarg1, FixedWeightPostingSource jarg1_);
  public final static native void delete_FixedWeightPostingSource(long jarg1);
  public final static native long new_MSet__SWIG_0();
  public final static native long new_MSet__SWIG_1(long jarg1, MSet jarg1_);
  public final static native void delete_MSet(long jarg1);
  public final static native void MSet_fetch__SWIG_0(long jarg1, MSet jarg1_, long jarg2, MSetIterator jarg2_, long jarg3, MSetIterator jarg3_);
  public final static native void MSet_fetch__SWIG_1(long jarg1, MSet jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native void MSet_fetch__SWIG_2(long jarg1, MSet jarg1_);
  public final static native int MSet_convertToPercent__SWIG_0(long jarg1, MSet jarg1_, double jarg2);
  public final static native int MSet_convertToPercent__SWIG_1(long jarg1, MSet jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native long MSet_getTermFreq(long jarg1, MSet jarg1_, String jarg2);
  public final static native double MSet_getTermWeight(long jarg1, MSet jarg1_, String jarg2);
  public final static native long MSet_getFirstItem(long jarg1, MSet jarg1_);
  public final static native long MSet_getMatchesLowerBound(long jarg1, MSet jarg1_);
  public final static native long MSet_getMatchesEstimated(long jarg1, MSet jarg1_);
  public final static native long MSet_getMatchesUpperBound(long jarg1, MSet jarg1_);
  public final static native long MSet_getUncollapsedMatchesLowerBound(long jarg1, MSet jarg1_);
  public final static native long MSet_getUncollapsedMatchesEstimated(long jarg1, MSet jarg1_);
  public final static native long MSet_getUncollapsedMatchesUpperBound(long jarg1, MSet jarg1_);
  public final static native double MSet_getMaxPossible(long jarg1, MSet jarg1_);
  public final static native double MSet_getMaxAttained(long jarg1, MSet jarg1_);
  public final static native long MSet_size(long jarg1, MSet jarg1_);
  public final static native boolean MSet_empty(long jarg1, MSet jarg1_);
  public final static native long MSet_begin(long jarg1, MSet jarg1_);
  public final static native long MSet_end(long jarg1, MSet jarg1_);
  public final static native long MSet_back(long jarg1, MSet jarg1_);
  public final static native long MSet_getHit(long jarg1, MSet jarg1_, long jarg2);
  public final static native int MSet_getDocumentPercentage(long jarg1, MSet jarg1_, long jarg2);
  public final static native long MSet_getDocument(long jarg1, MSet jarg1_, long jarg2);
  public final static native long MSet_getDocId(long jarg1, MSet jarg1_, long jarg2);
  public final static native long MSet_getElement(long jarg1, MSet jarg1_, long jarg2);
  public final static native String MSet_toString(long jarg1, MSet jarg1_);
  public final static native long new_MSetIterator__SWIG_0();
  public final static native long new_MSetIterator__SWIG_1(long jarg1, MSetIterator jarg1_);
  public final static native void delete_MSetIterator(long jarg1);
  public final static native long MSetIterator_getDocId(long jarg1, MSetIterator jarg1_);
  public final static native long MSetIterator_next(long jarg1, MSetIterator jarg1_);
  public final static native long MSetIterator_prev(long jarg1, MSetIterator jarg1_);
  public final static native boolean MSetIterator_equals(long jarg1, MSetIterator jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native long MSetIterator_getDocument(long jarg1, MSetIterator jarg1_);
  public final static native long MSetIterator_getRank(long jarg1, MSetIterator jarg1_);
  public final static native double MSetIterator_getWeight(long jarg1, MSetIterator jarg1_);
  public final static native String MSetIterator_getCollapseKey(long jarg1, MSetIterator jarg1_);
  public final static native long MSetIterator_getCollapseCount(long jarg1, MSetIterator jarg1_);
  public final static native int MSetIterator_getPercent(long jarg1, MSetIterator jarg1_);
  public final static native String MSetIterator_toString(long jarg1, MSetIterator jarg1_);
  public final static native long new_ESet__SWIG_0();
  public final static native long new_ESet__SWIG_1(long jarg1, ESet jarg1_);
  public final static native void delete_ESet(long jarg1);
  public final static native long ESet_getEbound(long jarg1, ESet jarg1_);
  public final static native long ESet_size(long jarg1, ESet jarg1_);
  public final static native boolean ESet_empty(long jarg1, ESet jarg1_);
  public final static native long ESet_begin(long jarg1, ESet jarg1_);
  public final static native long ESet_end(long jarg1, ESet jarg1_);
  public final static native long ESet_back(long jarg1, ESet jarg1_);
  public final static native String ESet_toString(long jarg1, ESet jarg1_);
  public final static native long new_ESetIterator__SWIG_0();
  public final static native long new_ESetIterator__SWIG_1(long jarg1, ESetIterator jarg1_);
  public final static native void delete_ESetIterator(long jarg1);
  public final static native String ESetIterator_getTerm(long jarg1, ESetIterator jarg1_);
  public final static native String ESetIterator_next(long jarg1, ESetIterator jarg1_);
  public final static native String ESetIterator_prev(long jarg1, ESetIterator jarg1_);
  public final static native boolean ESetIterator_equals(long jarg1, ESetIterator jarg1_, long jarg2, ESetIterator jarg2_);
  public final static native double ESetIterator_getWeight(long jarg1, ESetIterator jarg1_);
  public final static native String ESetIterator_toString(long jarg1, ESetIterator jarg1_);
  public final static native long new_RSet__SWIG_0(long jarg1, RSet jarg1_);
  public final static native long new_RSet__SWIG_1();
  public final static native void delete_RSet(long jarg1);
  public final static native long RSet_size(long jarg1, RSet jarg1_);
  public final static native boolean RSet_empty(long jarg1, RSet jarg1_);
  public final static native void RSet_addDocument__SWIG_0(long jarg1, RSet jarg1_, long jarg2);
  public final static native void RSet_addDocument__SWIG_1(long jarg1, RSet jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native void RSet_removeDocument__SWIG_0(long jarg1, RSet jarg1_, long jarg2);
  public final static native void RSet_removeDocument__SWIG_1(long jarg1, RSet jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native boolean RSet_contains__SWIG_0(long jarg1, RSet jarg1_, long jarg2);
  public final static native boolean RSet_contains__SWIG_1(long jarg1, RSet jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native String RSet_toString(long jarg1, RSet jarg1_);
  public final static native boolean MatchDecider_accept(long jarg1, MatchDecider jarg1_, long jarg2, Document jarg2_);
  public final static native void delete_MatchDecider(long jarg1);
  public final static native long new_MatchDecider();
  public final static native void MatchDecider_director_connect(MatchDecider obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void MatchDecider_change_ownership(MatchDecider obj, long cptr, boolean take_or_release);
  public final static native boolean ExpandDecider_accept(long jarg1, ExpandDecider jarg1_, String jarg2);
  public final static native void delete_ExpandDecider(long jarg1);
  public final static native long new_ExpandDecider();
  public final static native void ExpandDecider_director_connect(ExpandDecider obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void ExpandDecider_change_ownership(ExpandDecider obj, long cptr, boolean take_or_release);
  public final static native long new_Enquire(long jarg1, Database jarg1_);
  public final static native void delete_Enquire(long jarg1);
  public final static native void Enquire_setQuery__SWIG_0(long jarg1, Enquire jarg1_, long jarg2, Query jarg2_, long jarg3);
  public final static native void Enquire_setQuery__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, Query jarg2_);
  public final static native long Enquire_getQuery(long jarg1, Enquire jarg1_);
  public final static native void Enquire_addMatchspy(long jarg1, Enquire jarg1_, long jarg2, MatchSpy jarg2_);
  public final static native void Enquire_clearMatchspies(long jarg1, Enquire jarg1_);
  public final static native void Enquire_setWeightingScheme(long jarg1, Enquire jarg1_, long jarg2, Weight jarg2_);
  public final static native void Enquire_setCollapseKey__SWIG_0(long jarg1, Enquire jarg1_, int jarg2, long jarg3);
  public final static native void Enquire_setCollapseKey__SWIG_1(long jarg1, Enquire jarg1_, int jarg2);
  public final static native int Enquire_ASCENDING_get();
  public final static native int Enquire_DESCENDING_get();
  public final static native int Enquire_DONT_CARE_get();
  public final static native void Enquire_setDocidOrder(long jarg1, Enquire jarg1_, int jarg2);
  public final static native void Enquire_setCutoff__SWIG_0(long jarg1, Enquire jarg1_, int jarg2, double jarg3);
  public final static native void Enquire_setCutoff__SWIG_1(long jarg1, Enquire jarg1_, int jarg2);
  public final static native void Enquire_setSortByRelevance(long jarg1, Enquire jarg1_);
  public final static native void Enquire_setSortByValue__SWIG_0(long jarg1, Enquire jarg1_, int jarg2, boolean jarg3);
  public final static native void Enquire_setSortByValue__SWIG_1(long jarg1, Enquire jarg1_, int jarg2);
  public final static native void Enquire_setSortByValueThenRelevance__SWIG_0(long jarg1, Enquire jarg1_, int jarg2, boolean jarg3);
  public final static native void Enquire_setSortByValueThenRelevance__SWIG_1(long jarg1, Enquire jarg1_, int jarg2);
  public final static native void Enquire_setSortByRelevanceThenValue__SWIG_0(long jarg1, Enquire jarg1_, int jarg2, boolean jarg3);
  public final static native void Enquire_setSortByRelevanceThenValue__SWIG_1(long jarg1, Enquire jarg1_, int jarg2);
  public final static native void Enquire_setSortByKey__SWIG_0(long jarg1, Enquire jarg1_, long jarg2, KeyMaker jarg2_, boolean jarg3);
  public final static native void Enquire_setSortByKey__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, Sorter jarg2_);
  public final static native void Enquire_setSortByKeyThenRelevance__SWIG_0(long jarg1, Enquire jarg1_, long jarg2, KeyMaker jarg2_, boolean jarg3);
  public final static native void Enquire_setSortByKeyThenRelevance__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, Sorter jarg2_);
  public final static native void Enquire_setSortByRelevanceThenKey__SWIG_0(long jarg1, Enquire jarg1_, long jarg2, KeyMaker jarg2_, boolean jarg3);
  public final static native void Enquire_setSortByRelevanceThenKey__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, Sorter jarg2_);
  public final static native int Enquire_INCLUDE_QUERY_TERMS_get();
  public final static native int Enquire_USE_EXACT_TERMFREQ_get();
  public final static native long Enquire_getMSet__SWIG_0(long jarg1, Enquire jarg1_, long jarg2, long jarg3, long jarg4, long jarg5, RSet jarg5_, long jarg6, MatchDecider jarg6_, long jarg7, MatchDecider jarg7_);
  public final static native long Enquire_getMSet__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, long jarg3, long jarg4, long jarg5, RSet jarg5_, long jarg6, MatchDecider jarg6_);
  public final static native long Enquire_getMSet__SWIG_2(long jarg1, Enquire jarg1_, long jarg2, long jarg3, long jarg4, long jarg5, RSet jarg5_);
  public final static native long Enquire_getMSet__SWIG_3(long jarg1, Enquire jarg1_, long jarg2, long jarg3, long jarg4);
  public final static native long Enquire_getMSet__SWIG_4(long jarg1, Enquire jarg1_, long jarg2, long jarg3);
  public final static native long Enquire_getMSet__SWIG_5(long jarg1, Enquire jarg1_, long jarg2, long jarg3, long jarg4, RSet jarg4_, long jarg5, MatchDecider jarg5_);
  public final static native long Enquire_getMSet__SWIG_6(long jarg1, Enquire jarg1_, long jarg2, long jarg3, long jarg4, RSet jarg4_);
  public final static native long Enquire_getESet__SWIG_0(long jarg1, Enquire jarg1_, long jarg2, long jarg3, RSet jarg3_, int jarg4, double jarg5, long jarg6, ExpandDecider jarg6_);
  public final static native long Enquire_getESet__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, long jarg3, RSet jarg3_, int jarg4, double jarg5);
  public final static native long Enquire_getESet__SWIG_2(long jarg1, Enquire jarg1_, long jarg2, long jarg3, RSet jarg3_, int jarg4);
  public final static native long Enquire_getESet__SWIG_3(long jarg1, Enquire jarg1_, long jarg2, long jarg3, RSet jarg3_);
  public final static native long Enquire_getESet__SWIG_4(long jarg1, Enquire jarg1_, long jarg2, long jarg3, RSet jarg3_, int jarg4, double jarg5, long jarg6, ExpandDecider jarg6_, double jarg7);
  public final static native long Enquire_getESet__SWIG_5(long jarg1, Enquire jarg1_, long jarg2, long jarg3, RSet jarg3_, long jarg4, ExpandDecider jarg4_);
  public final static native long Enquire_getMatchingTermsBegin__SWIG_0(long jarg1, Enquire jarg1_, long jarg2);
  public final static native long Enquire_getMatchingTermsEnd__SWIG_0(long jarg1, Enquire jarg1_, long jarg2);
  public final static native long Enquire_getMatchingTermsBegin__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native long Enquire_getMatchingTermsEnd__SWIG_1(long jarg1, Enquire jarg1_, long jarg2, MSetIterator jarg2_);
  public final static native String Enquire_toString(long jarg1, Enquire jarg1_);
  public final static native long new_Registry__SWIG_0(long jarg1, Registry jarg1_);
  public final static native long new_Registry__SWIG_1();
  public final static native void delete_Registry(long jarg1);
  public final static native void Registry_registerWeightingScheme(long jarg1, Registry jarg1_, long jarg2, Weight jarg2_);
  public final static native long Registry_getWeightingScheme(long jarg1, Registry jarg1_, String jarg2);
  public final static native void Registry_registerPostingSource(long jarg1, Registry jarg1_, long jarg2, PostingSource jarg2_);
  public final static native long Registry_getPostingSource(long jarg1, Registry jarg1_, String jarg2);
  public final static native void Registry_registerMatchSpy(long jarg1, Registry jarg1_, long jarg2, MatchSpy jarg2_);
  public final static native long Registry_getMatchSpy(long jarg1, Registry jarg1_, String jarg2);
  public final static native void delete_Weight(long jarg1);
  public final static native String Weight_name(long jarg1, Weight jarg1_);
  public final static native double Weight_getSumPart(long jarg1, Weight jarg1_, long jarg2, long jarg3);
  public final static native double Weight_getMaxPart(long jarg1, Weight jarg1_);
  public final static native double Weight_getSumExtra(long jarg1, Weight jarg1_, long jarg2);
  public final static native double Weight_getMaxExtra(long jarg1, Weight jarg1_);
  public final static native boolean Weight_getSumpartNeedsDoclength(long jarg1, Weight jarg1_);
  public final static native boolean Weight_getSumpartNeedsWdf(long jarg1, Weight jarg1_);
  public final static native long new_BoolWeight();
  public final static native String BoolWeight_name(long jarg1, BoolWeight jarg1_);
  public final static native double BoolWeight_getSumPart(long jarg1, BoolWeight jarg1_, long jarg2, long jarg3);
  public final static native double BoolWeight_getMaxPart(long jarg1, BoolWeight jarg1_);
  public final static native double BoolWeight_getSumExtra(long jarg1, BoolWeight jarg1_, long jarg2);
  public final static native double BoolWeight_getMaxExtra(long jarg1, BoolWeight jarg1_);
  public final static native void delete_BoolWeight(long jarg1);
  public final static native long new_BM25Weight__SWIG_0(double jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
  public final static native long new_BM25Weight__SWIG_1();
  public final static native String BM25Weight_name(long jarg1, BM25Weight jarg1_);
  public final static native double BM25Weight_getSumPart(long jarg1, BM25Weight jarg1_, long jarg2, long jarg3);
  public final static native double BM25Weight_getMaxPart(long jarg1, BM25Weight jarg1_);
  public final static native double BM25Weight_getSumExtra(long jarg1, BM25Weight jarg1_, long jarg2);
  public final static native double BM25Weight_getMaxExtra(long jarg1, BM25Weight jarg1_);
  public final static native void delete_BM25Weight(long jarg1);
  public final static native long new_TradWeight__SWIG_0(double jarg1);
  public final static native long new_TradWeight__SWIG_1();
  public final static native String TradWeight_name(long jarg1, TradWeight jarg1_);
  public final static native double TradWeight_getSumPart(long jarg1, TradWeight jarg1_, long jarg2, long jarg3);
  public final static native double TradWeight_getMaxPart(long jarg1, TradWeight jarg1_);
  public final static native double TradWeight_getSumExtra(long jarg1, TradWeight jarg1_, long jarg2);
  public final static native double TradWeight_getMaxExtra(long jarg1, TradWeight jarg1_);
  public final static native void delete_TradWeight(long jarg1);
  public final static native long new_MatchSpy();
  public final static native void delete_MatchSpy(long jarg1);
  public final static native void MatchSpy_apply(long jarg1, MatchSpy jarg1_, long jarg2, Document jarg2_, double jarg3);
  public final static native String MatchSpy_name(long jarg1, MatchSpy jarg1_);
  public final static native String MatchSpy_nameSwigExplicitMatchSpy(long jarg1, MatchSpy jarg1_);
  public final static native void MatchSpy_mergeResults(long jarg1, MatchSpy jarg1_, String jarg2);
  public final static native void MatchSpy_mergeResultsSwigExplicitMatchSpy(long jarg1, MatchSpy jarg1_, String jarg2);
  public final static native String MatchSpy_toString(long jarg1, MatchSpy jarg1_);
  public final static native String MatchSpy_toStringSwigExplicitMatchSpy(long jarg1, MatchSpy jarg1_);
  public final static native void MatchSpy_director_connect(MatchSpy obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void MatchSpy_change_ownership(MatchSpy obj, long cptr, boolean take_or_release);
  public final static native long new_ValueCountMatchSpy__SWIG_0();
  public final static native long new_ValueCountMatchSpy__SWIG_1(int jarg1);
  public final static native long ValueCountMatchSpy_getTotal(long jarg1, ValueCountMatchSpy jarg1_);
  public final static native long ValueCountMatchSpy_valuesBegin(long jarg1, ValueCountMatchSpy jarg1_);
  public final static native long ValueCountMatchSpy_valuesEnd(long jarg1, ValueCountMatchSpy jarg1_);
  public final static native long ValueCountMatchSpy_topValuesBegin(long jarg1, ValueCountMatchSpy jarg1_, long jarg2);
  public final static native long ValueCountMatchSpy_topValuesEnd(long jarg1, ValueCountMatchSpy jarg1_, long jarg2);
  public final static native void ValueCountMatchSpy_apply(long jarg1, ValueCountMatchSpy jarg1_, long jarg2, Document jarg2_, double jarg3);
  public final static native String ValueCountMatchSpy_name(long jarg1, ValueCountMatchSpy jarg1_);
  public final static native void ValueCountMatchSpy_mergeResults(long jarg1, ValueCountMatchSpy jarg1_, String jarg2);
  public final static native String ValueCountMatchSpy_toString(long jarg1, ValueCountMatchSpy jarg1_);
  public final static native void delete_ValueCountMatchSpy(long jarg1);
  public final static native void Database_addDatabase(long jarg1, Database jarg1_, long jarg2, Database jarg2_);
  public final static native long new_Database__SWIG_0();
  public final static native long new_Database__SWIG_1(String jarg1);
  public final static native void delete_Database(long jarg1);
  public final static native long new_Database__SWIG_2(long jarg1, Database jarg1_);
  public final static native void Database_reopen(long jarg1, Database jarg1_);
  public final static native void Database_close(long jarg1, Database jarg1_);
  public final static native String Database_toString(long jarg1, Database jarg1_);
  public final static native long Database_postListBegin(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_postListEnd(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_termListBegin(long jarg1, Database jarg1_, long jarg2);
  public final static native long Database_termListEnd(long jarg1, Database jarg1_, long jarg2);
  public final static native long Database_positionListBegin(long jarg1, Database jarg1_, long jarg2, String jarg3);
  public final static native long Database_positionListEnd(long jarg1, Database jarg1_, long jarg2, String jarg3);
  public final static native long Database_allTermsBegin__SWIG_0(long jarg1, Database jarg1_);
  public final static native long Database_allTermsEnd__SWIG_0(long jarg1, Database jarg1_);
  public final static native long Database_allTermsBegin__SWIG_1(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_allTermsEnd__SWIG_1(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_getDocCount(long jarg1, Database jarg1_);
  public final static native long Database_getLastDocId(long jarg1, Database jarg1_);
  public final static native double Database_getAvLength(long jarg1, Database jarg1_);
  public final static native long Database_getTermFreq(long jarg1, Database jarg1_, String jarg2);
  public final static native boolean Database_termExists(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_getCollectionFreq(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_getValueFreq(long jarg1, Database jarg1_, int jarg2);
  public final static native String Database_getValueLowerBound(long jarg1, Database jarg1_, int jarg2);
  public final static native String Database_getValueUpperBound(long jarg1, Database jarg1_, int jarg2);
  public final static native long Database_getDoclengthLowerBound(long jarg1, Database jarg1_);
  public final static native long Database_getDoclengthUpperBound(long jarg1, Database jarg1_);
  public final static native long Database_getWdfUpperBound(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_valuestreamBegin(long jarg1, Database jarg1_, int jarg2);
  public final static native long Database_valuestreamEnd(long jarg1, Database jarg1_, int jarg2);
  public final static native long Database_getDocLength(long jarg1, Database jarg1_, long jarg2);
  public final static native void Database_keepAlive(long jarg1, Database jarg1_);
  public final static native long Database_getDocument(long jarg1, Database jarg1_, long jarg2);
  public final static native String Database_getSpellingSuggestion__SWIG_0(long jarg1, Database jarg1_, String jarg2, long jarg3);
  public final static native String Database_getSpellingSuggestion__SWIG_1(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_spellingsBegin(long jarg1, Database jarg1_);
  public final static native long Database_spellingsEnd(long jarg1, Database jarg1_);
  public final static native long Database_synonymsBegin(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_synonymsEnd(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_synonymKeysBegin__SWIG_0(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_synonymKeysBegin__SWIG_1(long jarg1, Database jarg1_);
  public final static native long Database_synonymKeysEnd__SWIG_0(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_synonymKeysEnd__SWIG_1(long jarg1, Database jarg1_);
  public final static native String Database_getMetadata(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_metadataKeysBegin__SWIG_0(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_metadataKeysBegin__SWIG_1(long jarg1, Database jarg1_);
  public final static native long Database_metadataKeysEnd__SWIG_0(long jarg1, Database jarg1_, String jarg2);
  public final static native long Database_metadataKeysEnd__SWIG_1(long jarg1, Database jarg1_);
  public final static native String Database_getUuid(long jarg1, Database jarg1_);
  public final static native boolean Database_hasPositions(long jarg1, Database jarg1_);
  public final static native void delete_WritableDatabase(long jarg1);
  public final static native long new_WritableDatabase__SWIG_0();
  public final static native long new_WritableDatabase__SWIG_1(String jarg1, int jarg2);
  public final static native long new_WritableDatabase__SWIG_2(long jarg1, WritableDatabase jarg1_);
  public final static native void WritableDatabase_commit(long jarg1, WritableDatabase jarg1_);
  public final static native void WritableDatabase_flush(long jarg1, WritableDatabase jarg1_);
  public final static native void WritableDatabase_beginTransaction__SWIG_0(long jarg1, WritableDatabase jarg1_, boolean jarg2);
  public final static native void WritableDatabase_beginTransaction__SWIG_1(long jarg1, WritableDatabase jarg1_);
  public final static native void WritableDatabase_commitTransaction(long jarg1, WritableDatabase jarg1_);
  public final static native void WritableDatabase_cancelTransaction(long jarg1, WritableDatabase jarg1_);
  public final static native long WritableDatabase_addDocument(long jarg1, WritableDatabase jarg1_, long jarg2, Document jarg2_);
  public final static native void WritableDatabase_deleteDocument__SWIG_0(long jarg1, WritableDatabase jarg1_, long jarg2);
  public final static native void WritableDatabase_replaceDocument__SWIG_0(long jarg1, WritableDatabase jarg1_, long jarg2, long jarg3, Document jarg3_);
  public final static native void WritableDatabase_deleteDocument__SWIG_1(long jarg1, WritableDatabase jarg1_, String jarg2);
  public final static native long WritableDatabase_replaceDocument__SWIG_1(long jarg1, WritableDatabase jarg1_, String jarg2, long jarg3, Document jarg3_);
  public final static native void WritableDatabase_addSpelling__SWIG_0(long jarg1, WritableDatabase jarg1_, String jarg2, long jarg3);
  public final static native void WritableDatabase_addSpelling__SWIG_1(long jarg1, WritableDatabase jarg1_, String jarg2);
  public final static native void WritableDatabase_removeSpelling__SWIG_0(long jarg1, WritableDatabase jarg1_, String jarg2, long jarg3);
  public final static native void WritableDatabase_removeSpelling__SWIG_1(long jarg1, WritableDatabase jarg1_, String jarg2);
  public final static native void WritableDatabase_addSynonym(long jarg1, WritableDatabase jarg1_, String jarg2, String jarg3);
  public final static native void WritableDatabase_removeSynonym(long jarg1, WritableDatabase jarg1_, String jarg2, String jarg3);
  public final static native void WritableDatabase_clearSynonyms(long jarg1, WritableDatabase jarg1_, String jarg2);
  public final static native void WritableDatabase_setMetadata(long jarg1, WritableDatabase jarg1_, String jarg2, String jarg3);
  public final static native String WritableDatabase_toString(long jarg1, WritableDatabase jarg1_);
  public final static native int DB_CREATE_OR_OPEN_get();
  public final static native int DB_CREATE_get();
  public final static native int DB_CREATE_OR_OVERWRITE_get();
  public final static native int DB_OPEN_get();
  public final static native long Auto_openStub(String jarg1);
  public final static native long Brass_open__SWIG_0(String jarg1);
  public final static native long Brass_open__SWIG_1(String jarg1, int jarg2, int jarg3);
  public final static native long Brass_open__SWIG_2(String jarg1, int jarg2);
  public final static native long Chert_open__SWIG_0(String jarg1);
  public final static native long Chert_open__SWIG_1(String jarg1, int jarg2, int jarg3);
  public final static native long Chert_open__SWIG_2(String jarg1, int jarg2);
  public final static native long Flint_open__SWIG_0(String jarg1);
  public final static native long Flint_open__SWIG_1(String jarg1, int jarg2, int jarg3);
  public final static native long Flint_open__SWIG_2(String jarg1, int jarg2);
  public final static native long InMemory_open();
  public final static native long Remote_open__SWIG_0(String jarg1, long jarg2, long jarg3, long jarg4);
  public final static native long Remote_open__SWIG_1(String jarg1, long jarg2, long jarg3);
  public final static native long Remote_open__SWIG_2(String jarg1, long jarg2);
  public final static native long Remote_openWritable__SWIG_0(String jarg1, long jarg2, long jarg3, long jarg4);
  public final static native long Remote_openWritable__SWIG_1(String jarg1, long jarg2, long jarg3);
  public final static native long Remote_openWritable__SWIG_2(String jarg1, long jarg2);
  public final static native long Remote_open__SWIG_3(String jarg1, String jarg2, long jarg3);
  public final static native long Remote_open__SWIG_4(String jarg1, String jarg2);
  public final static native long Remote_openWritable__SWIG_3(String jarg1, String jarg2, long jarg3);
  public final static native long Remote_openWritable__SWIG_4(String jarg1, String jarg2);
  public final static native long new_Query__SWIG_0(long jarg1, Query jarg1_);
  public final static native long new_Query__SWIG_1();
  public final static native void delete_Query(long jarg1);
  public final static native long new_Query__SWIG_2(String jarg1, long jarg2, long jarg3);
  public final static native long new_Query__SWIG_3(String jarg1, long jarg2);
  public final static native long new_Query__SWIG_4(String jarg1);
  public final static native long new_Query__SWIG_5(int jarg1, long jarg2, Query jarg2_, long jarg3, Query jarg3_);
  public final static native long new_Query__SWIG_6(int jarg1, String jarg2, String jarg3);
  public final static native long new_Query__SWIG_9(int jarg1, long jarg2, Query jarg2_, double jarg3);
  public final static native long new_Query__SWIG_10(int jarg1, int jarg2, String jarg3, String jarg4);
  public final static native long new_Query__SWIG_11(int jarg1, int jarg2, String jarg3);
  public final static native long new_Query__SWIG_12(long jarg1, PostingSource jarg1_);
  public final static native long Query_getLength(long jarg1, Query jarg1_);
  public final static native long Query_getTermsBegin(long jarg1, Query jarg1_);
  public final static native long Query_getTermsEnd(long jarg1, Query jarg1_);
  public final static native boolean Query_empty(long jarg1, Query jarg1_);
  public final static native String Query_serialise(long jarg1, Query jarg1_);
  public final static native long Query_unserialise__SWIG_0(String jarg1);
  public final static native long Query_unserialise__SWIG_1(String jarg1, long jarg2, Registry jarg2_);
  public final static native String Query_toString(long jarg1, Query jarg1_);
  public final static native long new_Query__SWIG_13(int jarg1, String[] jarg2, long jarg3);
  public final static native long new_Query__SWIG_14(int jarg1, String[] jarg2);
  public final static native long new_Query__SWIG_15(int jarg1, long[] jarg2, long jarg3);
  public final static native long new_Query__SWIG_16(int jarg1, long[] jarg2);
  public final static native boolean Stopper_apply(long jarg1, Stopper jarg1_, String jarg2);
  public final static native void delete_Stopper(long jarg1);
  public final static native String Stopper_toString(long jarg1, Stopper jarg1_);
  public final static native String Stopper_toStringSwigExplicitStopper(long jarg1, Stopper jarg1_);
  public final static native long new_Stopper();
  public final static native void Stopper_director_connect(Stopper obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void Stopper_change_ownership(Stopper obj, long cptr, boolean take_or_release);
  public final static native long new_SimpleStopper();
  public final static native void SimpleStopper_add(long jarg1, SimpleStopper jarg1_, String jarg2);
  public final static native boolean SimpleStopper_apply(long jarg1, SimpleStopper jarg1_, String jarg2);
  public final static native String SimpleStopper_toString(long jarg1, SimpleStopper jarg1_);
  public final static native void delete_SimpleStopper(long jarg1);
  public final static native void delete_ValueRangeProcessor(long jarg1);
  public final static native int ValueRangeProcessor_apply(long jarg1, ValueRangeProcessor jarg1_, long jarg2, long jarg3);
  public final static native long new_ValueRangeProcessor();
  public final static native void ValueRangeProcessor_director_connect(ValueRangeProcessor obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void ValueRangeProcessor_change_ownership(ValueRangeProcessor obj, long cptr, boolean take_or_release);
  public final static native long new_StringValueRangeProcessor__SWIG_0(int jarg1);
  public final static native long new_StringValueRangeProcessor__SWIG_1(int jarg1, String jarg2, boolean jarg3);
  public final static native long new_StringValueRangeProcessor__SWIG_2(int jarg1, String jarg2);
  public final static native int StringValueRangeProcessor_apply(long jarg1, StringValueRangeProcessor jarg1_, long jarg2, long jarg3);
  public final static native void delete_StringValueRangeProcessor(long jarg1);
  public final static native long new_DateValueRangeProcessor__SWIG_0(int jarg1, boolean jarg2, int jarg3);
  public final static native long new_DateValueRangeProcessor__SWIG_1(int jarg1, boolean jarg2);
  public final static native long new_DateValueRangeProcessor__SWIG_2(int jarg1);
  public final static native long new_DateValueRangeProcessor__SWIG_3(int jarg1, String jarg2, boolean jarg3, boolean jarg4, int jarg5);
  public final static native long new_DateValueRangeProcessor__SWIG_4(int jarg1, String jarg2, boolean jarg3, boolean jarg4);
  public final static native long new_DateValueRangeProcessor__SWIG_5(int jarg1, String jarg2, boolean jarg3);
  public final static native long new_DateValueRangeProcessor__SWIG_6(int jarg1, String jarg2);
  public final static native int DateValueRangeProcessor_apply(long jarg1, DateValueRangeProcessor jarg1_, long jarg2, long jarg3);
  public final static native void delete_DateValueRangeProcessor(long jarg1);
  public final static native long new_NumberValueRangeProcessor__SWIG_0(int jarg1);
  public final static native long new_NumberValueRangeProcessor__SWIG_1(int jarg1, String jarg2, boolean jarg3);
  public final static native long new_NumberValueRangeProcessor__SWIG_2(int jarg1, String jarg2);
  public final static native int NumberValueRangeProcessor_apply(long jarg1, NumberValueRangeProcessor jarg1_, long jarg2, long jarg3);
  public final static native void delete_NumberValueRangeProcessor(long jarg1);
  public final static native int QueryParser_FLAG_BOOLEAN_get();
  public final static native int QueryParser_FLAG_PHRASE_get();
  public final static native int QueryParser_FLAG_LOVEHATE_get();
  public final static native int QueryParser_FLAG_BOOLEAN_ANY_CASE_get();
  public final static native int QueryParser_FLAG_WILDCARD_get();
  public final static native int QueryParser_FLAG_PURE_NOT_get();
  public final static native int QueryParser_FLAG_PARTIAL_get();
  public final static native int QueryParser_FLAG_SPELLING_CORRECTION_get();
  public final static native int QueryParser_FLAG_SYNONYM_get();
  public final static native int QueryParser_FLAG_AUTO_SYNONYMS_get();
  public final static native int QueryParser_FLAG_AUTO_MULTIWORD_SYNONYMS_get();
  public final static native int QueryParser_FLAG_DEFAULT_get();
  public final static native long new_QueryParser();
  public final static native void delete_QueryParser(long jarg1);
  public final static native void QueryParser_setStemmer(long jarg1, QueryParser jarg1_, long jarg2, Stem jarg2_);
  public final static native void QueryParser_setStemmingStrategy(long jarg1, QueryParser jarg1_, int jarg2);
  public final static native void QueryParser_setStopper__SWIG_0(long jarg1, QueryParser jarg1_, long jarg2, Stopper jarg2_);
  public final static native void QueryParser_setStopper__SWIG_1(long jarg1, QueryParser jarg1_);
  public final static native void QueryParser_setDefaultOp(long jarg1, QueryParser jarg1_, int jarg2);
  public final static native int QueryParser_getDefaultOp(long jarg1, QueryParser jarg1_);
  public final static native void QueryParser_setDatabase(long jarg1, QueryParser jarg1_, long jarg2, Database jarg2_);
  public final static native void QueryParser_setMaxWildcardExpansion(long jarg1, QueryParser jarg1_, long jarg2);
  public final static native long QueryParser_parseQuery__SWIG_0(long jarg1, QueryParser jarg1_, String jarg2, long jarg3, String jarg4);
  public final static native long QueryParser_parseQuery__SWIG_1(long jarg1, QueryParser jarg1_, String jarg2, long jarg3);
  public final static native long QueryParser_parseQuery__SWIG_2(long jarg1, QueryParser jarg1_, String jarg2);
  public final static native void QueryParser_addPrefix(long jarg1, QueryParser jarg1_, String jarg2, String jarg3);
  public final static native void QueryParser_addBooleanPrefix__SWIG_0(long jarg1, QueryParser jarg1_, String jarg2, String jarg3, boolean jarg4);
  public final static native void QueryParser_addBooleanPrefix__SWIG_1(long jarg1, QueryParser jarg1_, String jarg2, String jarg3);
  public final static native long QueryParser_stopListBegin(long jarg1, QueryParser jarg1_);
  public final static native long QueryParser_stopListEnd(long jarg1, QueryParser jarg1_);
  public final static native long QueryParser_unstemBegin(long jarg1, QueryParser jarg1_, String jarg2);
  public final static native long QueryParser_unstemEnd(long jarg1, QueryParser jarg1_, String jarg2);
  public final static native void QueryParser_addValuerangeprocessor(long jarg1, QueryParser jarg1_, long jarg2, ValueRangeProcessor jarg2_);
  public final static native String QueryParser_getCorrectedQueryString(long jarg1, QueryParser jarg1_);
  public final static native String QueryParser_toString(long jarg1, QueryParser jarg1_);
  public final static native String sortableSerialise(double jarg1);
  public final static native double sortableUnserialise(String jarg1);
  public final static native void delete_StemImplementation(long jarg1);
  public final static native String StemImplementation_apply(long jarg1, StemImplementation jarg1_, String jarg2);
  public final static native String StemImplementation_toString(long jarg1, StemImplementation jarg1_);
  public final static native long new_StemImplementation();
  public final static native void StemImplementation_director_connect(StemImplementation obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void StemImplementation_change_ownership(StemImplementation obj, long cptr, boolean take_or_release);
  public final static native long new_Stem__SWIG_0(String jarg1);
  public final static native long new_Stem__SWIG_1(long jarg1, StemImplementation jarg1_);
  public final static native void delete_Stem(long jarg1);
  public final static native String Stem_apply(long jarg1, Stem jarg1_, String jarg2);
  public final static native String Stem_toString(long jarg1, Stem jarg1_);
  public final static native String Stem_getAvailableLanguages();
  public final static native long new_TermGenerator();
  public final static native void delete_TermGenerator(long jarg1);
  public final static native void TermGenerator_setStemmer(long jarg1, TermGenerator jarg1_, long jarg2, Stem jarg2_);
  public final static native void TermGenerator_setStopper__SWIG_0(long jarg1, TermGenerator jarg1_, long jarg2, Stopper jarg2_);
  public final static native void TermGenerator_setStopper__SWIG_1(long jarg1, TermGenerator jarg1_);
  public final static native void TermGenerator_setDocument(long jarg1, TermGenerator jarg1_, long jarg2, Document jarg2_);
  public final static native long TermGenerator_getDocument(long jarg1, TermGenerator jarg1_);
  public final static native void TermGenerator_setDatabase(long jarg1, TermGenerator jarg1_, long jarg2, WritableDatabase jarg2_);
  public final static native int TermGenerator_FLAG_SPELLING_get();
  public final static native int TermGenerator_setFlags__SWIG_0(long jarg1, TermGenerator jarg1_, int jarg2, int jarg3);
  public final static native int TermGenerator_setFlags__SWIG_1(long jarg1, TermGenerator jarg1_, int jarg2);
  public final static native void TermGenerator_setStemmingStrategy(long jarg1, TermGenerator jarg1_, int jarg2);
  public final static native void TermGenerator_indexText__SWIG_0(long jarg1, TermGenerator jarg1_, String jarg2, long jarg3, String jarg4);
  public final static native void TermGenerator_indexText__SWIG_1(long jarg1, TermGenerator jarg1_, String jarg2, long jarg3);
  public final static native void TermGenerator_indexText__SWIG_2(long jarg1, TermGenerator jarg1_, String jarg2);
  public final static native void TermGenerator_indexTextWithoutPositions__SWIG_0(long jarg1, TermGenerator jarg1_, String jarg2, long jarg3, String jarg4);
  public final static native void TermGenerator_indexTextWithoutPositions__SWIG_1(long jarg1, TermGenerator jarg1_, String jarg2, long jarg3);
  public final static native void TermGenerator_indexTextWithoutPositions__SWIG_2(long jarg1, TermGenerator jarg1_, String jarg2);
  public final static native void TermGenerator_increaseTermpos__SWIG_0(long jarg1, TermGenerator jarg1_, long jarg2);
  public final static native void TermGenerator_increaseTermpos__SWIG_1(long jarg1, TermGenerator jarg1_);
  public final static native long TermGenerator_getTermPos(long jarg1, TermGenerator jarg1_);
  public final static native void TermGenerator_setTermpos(long jarg1, TermGenerator jarg1_, long jarg2);
  public final static native String TermGenerator_toString(long jarg1, TermGenerator jarg1_);
  public final static native String KeyMaker_apply(long jarg1, KeyMaker jarg1_, long jarg2, Document jarg2_);
  public final static native void delete_KeyMaker(long jarg1);
  public final static native long new_KeyMaker();
  public final static native void KeyMaker_director_connect(KeyMaker obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void KeyMaker_change_ownership(KeyMaker obj, long cptr, boolean take_or_release);
  public final static native long new_MultiValueKeyMaker();
  public final static native String MultiValueKeyMaker_apply(long jarg1, MultiValueKeyMaker jarg1_, long jarg2, Document jarg2_);
  public final static native void MultiValueKeyMaker_addValue__SWIG_0(long jarg1, MultiValueKeyMaker jarg1_, int jarg2, boolean jarg3);
  public final static native void MultiValueKeyMaker_addValue__SWIG_1(long jarg1, MultiValueKeyMaker jarg1_, int jarg2);
  public final static native void delete_MultiValueKeyMaker(long jarg1);
  public final static native void delete_Sorter(long jarg1);
  public final static native long new_MultiValueSorter();
  public final static native String MultiValueSorter_apply(long jarg1, MultiValueSorter jarg1_, long jarg2, Document jarg2_);
  public final static native void MultiValueSorter_add__SWIG_0(long jarg1, MultiValueSorter jarg1_, int jarg2, boolean jarg3);
  public final static native void MultiValueSorter_add__SWIG_1(long jarg1, MultiValueSorter jarg1_, int jarg2);
  public final static native void delete_MultiValueSorter(long jarg1);
  public final static native long new_ValueSetMatchDecider(int jarg1, boolean jarg2);
  public final static native void ValueSetMatchDecider_addValue(long jarg1, ValueSetMatchDecider jarg1_, String jarg2);
  public final static native void ValueSetMatchDecider_removeValue(long jarg1, ValueSetMatchDecider jarg1_, String jarg2);
  public final static native boolean ValueSetMatchDecider_accept(long jarg1, ValueSetMatchDecider jarg1_, long jarg2, Document jarg2_);
  public final static native void delete_ValueSetMatchDecider(long jarg1);
  public final static native long new_Compactor();
  public final static native void delete_Compactor(long jarg1);
  public final static native void Compactor_setBlockSize(long jarg1, Compactor jarg1_, long jarg2);
  public final static native void Compactor_setRenumber(long jarg1, Compactor jarg1_, boolean jarg2);
  public final static native void Compactor_setMultipass(long jarg1, Compactor jarg1_, boolean jarg2);
  public final static native void Compactor_setCompactionLevel(long jarg1, Compactor jarg1_, int jarg2);
  public final static native void Compactor_setDestdir(long jarg1, Compactor jarg1_, String jarg2);
  public final static native void Compactor_addSource(long jarg1, Compactor jarg1_, String jarg2);
  public final static native void Compactor_compact(long jarg1, Compactor jarg1_);
  public final static native void Compactor_setStatus(long jarg1, Compactor jarg1_, String jarg2, String jarg3);
  public final static native void Compactor_setStatusSwigExplicitCompactor(long jarg1, Compactor jarg1_, String jarg2, String jarg3);
  public final static native String Compactor_resolveDuplicateMetadata(long jarg1, Compactor jarg1_, String jarg2, long jarg3, long jarg4);
  public final static native String Compactor_resolveDuplicateMetadataSwigExplicitCompactor(long jarg1, Compactor jarg1_, String jarg2, long jarg3, long jarg4);
  public final static native void Compactor_director_connect(Compactor obj, long cptr, boolean mem_own, boolean weak_global);
  public final static native void Compactor_change_ownership(Compactor obj, long cptr, boolean take_or_release);
  public final static native long ValuePostingSource_SWIGUpcast(long jarg1);
  public final static native long ValueWeightPostingSource_SWIGUpcast(long jarg1);
  public final static native long DecreasingValueWeightPostingSource_SWIGUpcast(long jarg1);
  public final static native long ValueMapPostingSource_SWIGUpcast(long jarg1);
  public final static native long FixedWeightPostingSource_SWIGUpcast(long jarg1);
  public final static native long BoolWeight_SWIGUpcast(long jarg1);
  public final static native long BM25Weight_SWIGUpcast(long jarg1);
  public final static native long TradWeight_SWIGUpcast(long jarg1);
  public final static native long ValueCountMatchSpy_SWIGUpcast(long jarg1);
  public final static native long WritableDatabase_SWIGUpcast(long jarg1);
  public final static native long SimpleStopper_SWIGUpcast(long jarg1);
  public final static native long StringValueRangeProcessor_SWIGUpcast(long jarg1);
  public final static native long DateValueRangeProcessor_SWIGUpcast(long jarg1);
  public final static native long NumberValueRangeProcessor_SWIGUpcast(long jarg1);
  public final static native long MultiValueKeyMaker_SWIGUpcast(long jarg1);
  public final static native long Sorter_SWIGUpcast(long jarg1);
  public final static native long MultiValueSorter_SWIGUpcast(long jarg1);
  public final static native long ValueSetMatchDecider_SWIGUpcast(long jarg1);

  public static long SwigDirector_PostingSource_getTermfreqMin(PostingSource self) {
    return self.getTermfreqMin();
  }
  public static long SwigDirector_PostingSource_getTermfreqEst(PostingSource self) {
    return self.getTermfreqEst();
  }
  public static long SwigDirector_PostingSource_getTermfreqMax(PostingSource self) {
    return self.getTermfreqMax();
  }
  public static double SwigDirector_PostingSource_getWeight(PostingSource self) {
    return self.getWeight();
  }
  public static long SwigDirector_PostingSource_getDocId(PostingSource self) {
    return self.getDocId();
  }
  public static void SwigDirector_PostingSource_next(PostingSource self, double min_wt) {
    self.next(min_wt);
  }
  public static void SwigDirector_PostingSource_skipTo(PostingSource self, long did, double min_wt) {
    self.skipTo(did, min_wt);
  }
  public static boolean SwigDirector_PostingSource_check(PostingSource self, long did, double min_wt) {
    return self.check(did, min_wt);
  }
  public static boolean SwigDirector_PostingSource_atEnd(PostingSource self) {
    return self.atEnd();
  }
  public static String SwigDirector_PostingSource_name(PostingSource self) {
    return self.name();
  }
  public static void SwigDirector_PostingSource_init(PostingSource self, long db) {
    self.init(new Database(db, false));
  }
  public static String SwigDirector_PostingSource_toString(PostingSource self) {
    return self.toString();
  }
  public static boolean SwigDirector_MatchDecider_accept(MatchDecider self, long doc) {
    return self.accept(new Document(doc, false));
  }
  public static boolean SwigDirector_ExpandDecider_accept(ExpandDecider self, String term) {
    return self.accept(term);
  }
  public static void SwigDirector_MatchSpy_apply(MatchSpy self, long doc, double wt) {
    self.apply(new Document(doc, false), wt);
  }
  public static String SwigDirector_MatchSpy_name(MatchSpy self) {
    return self.name();
  }
  public static void SwigDirector_MatchSpy_mergeResults(MatchSpy self, String s) {
    self.mergeResults(s);
  }
  public static String SwigDirector_MatchSpy_toString(MatchSpy self) {
    return self.toString();
  }
  public static boolean SwigDirector_Stopper_apply(Stopper self, String term) {
    return self.apply(term);
  }
  public static String SwigDirector_Stopper_toString(Stopper self) {
    return self.toString();
  }
  public static int SwigDirector_ValueRangeProcessor_apply(ValueRangeProcessor self, long begin, long end) {
    return self.apply(new SWIGTYPE_p_std__string(begin, false), new SWIGTYPE_p_std__string(end, false));
  }
  public static String SwigDirector_StemImplementation_apply(StemImplementation self, String word) {
    return self.apply(word);
  }
  public static String SwigDirector_StemImplementation_toString(StemImplementation self) {
    return self.toString();
  }
  public static String SwigDirector_KeyMaker_apply(KeyMaker self, long doc) {
    return self.apply(new Document(doc, false));
  }
  public static void SwigDirector_Compactor_setStatus(Compactor self, String table, String status) {
    self.setStatus(table, status);
  }
  public static String SwigDirector_Compactor_resolveDuplicateMetadata(Compactor self, String key, long num_tags, long tags) {
    return self.resolveDuplicateMetadata(key, num_tags, (tags == 0) ? null : new SWIGTYPE_p_std__string(tags, false));
  }

  private final static native void swig_module_init();
  static {
    System.loadLibrary("xapian_jni");
    swig_module_init();
  }
}
