1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.5
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package org.xapian;
10 
11 public class MultiValueKeyMaker extends KeyMaker {
12   private long swigCPtr;
13 
MultiValueKeyMaker(long cPtr, boolean cMemoryOwn)14   public MultiValueKeyMaker(long cPtr, boolean cMemoryOwn) {
15     super(XapianJNI.MultiValueKeyMaker_SWIGUpcast(cPtr), cMemoryOwn);
16     swigCPtr = cPtr;
17   }
18 
getCPtr(MultiValueKeyMaker obj)19   public static long getCPtr(MultiValueKeyMaker obj) {
20     return (obj == null) ? 0 : obj.swigCPtr;
21   }
22 
finalize()23   protected void finalize() {
24     delete();
25   }
26 
delete()27   public synchronized void delete() {
28     if (swigCPtr != 0) {
29       if (swigCMemOwn) {
30         swigCMemOwn = false;
31         XapianJNI.delete_MultiValueKeyMaker(swigCPtr);
32       }
33       swigCPtr = 0;
34     }
35     super.delete();
36   }
37 
MultiValueKeyMaker()38   public MultiValueKeyMaker() {
39     this(XapianJNI.new_MultiValueKeyMaker(), true);
40   }
41 
apply(Document doc)42   public String apply(Document doc) {
43     return XapianJNI.MultiValueKeyMaker_apply(swigCPtr, this, Document.getCPtr(doc), doc);
44   }
45 
addValue(int slot, boolean reverse)46   public void addValue(int slot, boolean reverse) {
47     XapianJNI.MultiValueKeyMaker_addValue__SWIG_0(swigCPtr, this, slot, reverse);
48   }
49 
addValue(int slot)50   public void addValue(int slot) {
51     XapianJNI.MultiValueKeyMaker_addValue__SWIG_1(swigCPtr, this, slot);
52   }
53 
54 }
55