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 ValueIterator {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14 
ValueIterator(long cPtr, boolean cMemoryOwn)15   protected ValueIterator(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19 
getCPtr(ValueIterator obj)20   protected static long getCPtr(ValueIterator obj) {
21     return (obj == null) ? 0 : obj.swigCPtr;
22   }
23 
finalize()24   protected void finalize() {
25     delete();
26   }
27 
delete()28   public synchronized void delete() {
29     if (swigCPtr != 0) {
30       if (swigCMemOwn) {
31         swigCMemOwn = false;
32         XapianJNI.delete_ValueIterator(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37 
ValueIterator()38   public ValueIterator() {
39     this(XapianJNI.new_ValueIterator(), true);
40   }
41 
getDocId()42   public long getDocId() {
43     return XapianJNI.ValueIterator_getDocId(swigCPtr, this);
44   }
45 
getValueNo()46   public int getValueNo() {
47     return XapianJNI.ValueIterator_getValueNo(swigCPtr, this);
48   }
49 
skipTo(long docid_or_slot)50   public void skipTo(long docid_or_slot) {
51     XapianJNI.ValueIterator_skipTo(swigCPtr, this, docid_or_slot);
52   }
53 
check(long docid)54   public boolean check(long docid) {
55     return XapianJNI.ValueIterator_check(swigCPtr, this, docid);
56   }
57 
toString()58   public String toString() {
59     return XapianJNI.ValueIterator_toString(swigCPtr, this);
60   }
61 
next()62   public String next() {
63     return XapianJNI.ValueIterator_next(swigCPtr, this);
64   }
65 
hasNext()66   public boolean hasNext() {
67     return XapianJNI.ValueIterator_hasNext(swigCPtr, this);
68   }
69 
equals(ValueIterator o)70   public boolean equals(ValueIterator o) {
71     return XapianJNI.ValueIterator_equals(swigCPtr, this, ValueIterator.getCPtr(o), o);
72   }
73 
getValue()74   public byte[] getValue() {
75     return XapianJNI.ValueIterator_getValue(swigCPtr, this);
76   }
77 
78 }
79