/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.32 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ public class MSet { private long swigCPtr; protected boolean swigCMemOwn; protected MSet(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(MSet obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; XapianJNI.delete_MSet(swigCPtr); } swigCPtr = 0; } public MSet() { this(XapianJNI.new_MSet__SWIG_0(), true); } public MSet(MSet other) { this(XapianJNI.new_MSet__SWIG_1(MSet.getCPtr(other), other), true); } public void fetch(MSetIterator begin, MSetIterator end) { XapianJNI.MSet_fetch__SWIG_0(swigCPtr, this, MSetIterator.getCPtr(begin), begin, MSetIterator.getCPtr(end), end); } public void fetch(MSetIterator item) { XapianJNI.MSet_fetch__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(item), item); } public void fetch() { XapianJNI.MSet_fetch__SWIG_2(swigCPtr, this); } public int convertToPercent(double wt) { return XapianJNI.MSet_convertToPercent__SWIG_0(swigCPtr, this, wt); } public int convertToPercent(MSetIterator item) { return XapianJNI.MSet_convertToPercent__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(item), item); } public long getTermFreq(String tname) { return XapianJNI.MSet_getTermFreq(swigCPtr, this, tname); } public double getTermWeight(String tname) { return XapianJNI.MSet_getTermWeight(swigCPtr, this, tname); } public long getFirstItem() { return XapianJNI.MSet_getFirstItem(swigCPtr, this); } public long getMatchesLowerBound() { return XapianJNI.MSet_getMatchesLowerBound(swigCPtr, this); } public long getMatchesEstimated() { return XapianJNI.MSet_getMatchesEstimated(swigCPtr, this); } public long getMatchesUpperBound() { return XapianJNI.MSet_getMatchesUpperBound(swigCPtr, this); } public double getMaxPossible() { return XapianJNI.MSet_getMaxPossible(swigCPtr, this); } public double getMaxAttained() { return XapianJNI.MSet_getMaxAttained(swigCPtr, this); } public long size() { return XapianJNI.MSet_size(swigCPtr, this); } public boolean empty() { return XapianJNI.MSet_empty(swigCPtr, this); } public MSetIterator begin() { return new MSetIterator(XapianJNI.MSet_begin(swigCPtr, this), true); } public MSetIterator end() { return new MSetIterator(XapianJNI.MSet_end(swigCPtr, this), true); } public MSetIterator back() { return new MSetIterator(XapianJNI.MSet_back(swigCPtr, this), true); } public MSetIterator getHit(long i) { return new MSetIterator(XapianJNI.MSet_getHit(swigCPtr, this, i), true); } public int getDocumentPercentage(long i) { return XapianJNI.MSet_getDocumentPercentage(swigCPtr, this, i); } public Document getDocument(long i) { return new Document(XapianJNI.MSet_getDocument(swigCPtr, this, i), true); } public long getDocId(long i) { return XapianJNI.MSet_getDocId(swigCPtr, this, i); } public MSetIterator getElement(long i) { return new MSetIterator(XapianJNI.MSet_getElement(swigCPtr, this, i), true); } public long getDocumentId(long i) { return XapianJNI.MSet_getDocumentId(swigCPtr, this, i); } public String toString() { return XapianJNI.MSet_toString(swigCPtr, this); } }