1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.13
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 DPHWeight extends Weight {
12   private transient long swigCPtr;
13 
DPHWeight(long cPtr, boolean cMemoryOwn)14   protected DPHWeight(long cPtr, boolean cMemoryOwn) {
15     super(XapianJNI.DPHWeight_SWIGUpcast(cPtr), cMemoryOwn);
16     swigCPtr = cPtr;
17   }
18 
getCPtr(DPHWeight obj)19   protected static long getCPtr(DPHWeight 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_DPHWeight(swigCPtr);
32       }
33       swigCPtr = 0;
34     }
35     super.delete();
36   }
37 
DPHWeight()38   public DPHWeight() {
39     this(XapianJNI.new_DPHWeight(), true);
40   }
41 
name()42   public String name() {
43     return XapianJNI.DPHWeight_name(swigCPtr, this);
44   }
45 
getSumPart(long wdf, long doclen, long uniqterms)46   public double getSumPart(long wdf, long doclen, long uniqterms) {
47     return XapianJNI.DPHWeight_getSumPart(swigCPtr, this, wdf, doclen, uniqterms);
48   }
49 
getMaxPart()50   public double getMaxPart() {
51     return XapianJNI.DPHWeight_getMaxPart(swigCPtr, this);
52   }
53 
getSumExtra(long doclen, long uniqterms)54   public double getSumExtra(long doclen, long uniqterms) {
55     return XapianJNI.DPHWeight_getSumExtra(swigCPtr, this, doclen, uniqterms);
56   }
57 
getMaxExtra()58   public double getMaxExtra() {
59     return XapianJNI.DPHWeight_getMaxExtra(swigCPtr, this);
60   }
61 
62 }
63