Commit 6d41aa1b authored by tavit ohanian's avatar tavit ohanian

some attempt to generate java/php wrappers, needs more work

parent cb58d6a6
......@@ -33,3 +33,8 @@ rmodel/rmodel
runquery/VankRunQuery
swig/obj/
swig/src/go/vank_go.go
swig/src/go/vank_gowrap.cpp
swig/src/java/vank_jni.cpp
swig/src/java/vank_jni.h
......@@ -41,9 +41,9 @@ PROPS = $(patsubst %,$(OUTDIRPROP)/%, $(notdir $(wildcard $(JSRCUI)/properties/*
VANK_OUTDIRPROP=$(VANK_OUTDIR)/ui/properties
VANK_PROPS = $(patsubst %,$(VANK_OUTDIRPROP)/%, $(notdir $(wildcard $(VANK_JSRCUI)/properties/*)))
#LEMUR_MFST=java/manifest.lemur
#LEMUR_MFSTRET=java/manifest.LemurRet
#LEMUR_MFSTIND=java/manifest.LemurIndex
LEMUR_MFST=java/manifest.lemur
LEMUR_MFSTRET=java/manifest.LemurRet
LEMUR_MFSTIND=java/manifest.LemurIndex
VANK_MFST=java/manifest.vank
MFSTRET=java/manifest.RetUI
MFSTIND=java/manifest.IndexUI
......@@ -126,7 +126,7 @@ java-lib: $(JAVADIRS) $(VANK_PROPS) $(SOLIB) $(JARFILES)
go-lib: $(OUTDIRGO) $(GOLIB)
php-lib: $(OUTDIRPHP) $(PHPLIB)
php-lib: $(OUTDIRPHP) $(PHPLIB) $(PHPINCLUDE)
csharp-lib: $(OUTDIRCSHARP) $(CSHARPLIB) $(CSHARP_DLL)
......@@ -214,7 +214,7 @@ $(GOLIB): $(OUTDIRGO)/vank_gowrap.o
## PHP
php/vank_phpwrap.cpp: $(PHPINTERFACES)
ifneq ("$(SWIG)", "")
$(SWIG) -php5 -c++ -o php/vank_phpwrap.cpp -outdir php $(INCLUDES) $(PHPSRC)
$(SWIG) -php7 -c++ -o php/vank_phpwrap.cpp -outdir php $(INCLUDES) $(PHPSRC)
endif
$(OUTDIRPHP)/vank_phpwrap.o: php/vank_phpwrap.cpp
......
This diff is collapsed.
This diff is collapsed.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class IndexDocumentMetaCallback {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IndexDocumentMetaCallback(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IndexDocumentMetaCallback obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_IndexDocumentMetaCallback(swigCPtr);
}
swigCPtr = 0;
}
}
public void docMetaCallback(int docType, String docClass, SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t metadata) {
vank_goJNI.IndexDocumentMetaCallback_docMetaCallback(swigCPtr, this, docType, docClass, SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t.getCPtr(metadata));
}
public IndexDocumentMetaCallback() {
this(vank_goJNI.new_IndexDocumentMetaCallback(), true);
}
public final static class source_type {
public final static IndexDocumentMetaCallback.source_type FileSource = new IndexDocumentMetaCallback.source_type("FileSource");
public final static IndexDocumentMetaCallback.source_type StringSource = new IndexDocumentMetaCallback.source_type("StringSource");
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static source_type swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + source_type.class + " with value " + swigValue);
}
private source_type(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private source_type(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private source_type(String swigName, source_type swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static source_type[] swigValues = { FileSource, StringSource };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class IndexEnvironment {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IndexEnvironment(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IndexEnvironment obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_IndexEnvironment(swigCPtr);
}
swigCPtr = 0;
}
}
public IndexEnvironment() {
this(vank_goJNI.new_IndexEnvironment(), true);
}
/**
Set the document root path
@param documentRoot path to document root.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setDocumentRoot(String documentRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setDocumentRoot(swigCPtr, this, documentRoot);
}
/**
Set anchor text root path.
@param anchorTextRoot path to anchor text root.
@throws Exception if
*/
public void setAnchorTextPath(String anchorTextRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setAnchorTextPath(swigCPtr, this, anchorTextRoot);
}
/**
Set offset metadata root path.
@param offsetMetadataRoot path to offset metadata root.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setOffsetMetadataPath(String offsetMetadataRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setOffsetMetadataPath(swigCPtr, this, offsetMetadataRoot);
}
/**
Set offset annotations root path.
@param offsetAnnotationsRoot path to offset annotations root.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setOffsetAnnotationsPath(String offsetAnnotationsRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setOffsetAnnotationsPath(swigCPtr, this, offsetAnnotationsRoot);
}
/**
Add parsing information for a file class. Data for these parameters
is passed into the FileClassEnvironmentFactory
@param name name of this file class, eg trecweb
@param iterator document iterator for this file class
@param parser document parser for this file class
@param tokenizer document tokenizer for this file class
@param startDocTag tag indicating start of a document
@param endDocTag tag indicating the end of a document
@param endMetadataTag tag indicating the end of the metadata fields
@param include default tags whose contents should be included in the index
@param exclude tags whose contents should be excluded from the index
@param index tags that should be forwarded to the index for tag extents
@param metadata tags whose contents should be indexed as metadata
@param conflations tags that should be conflated
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFileClass(String name, String iterator, String parser, String tokenizer, String startDocTag, String endDocTag, String endMetadataTag, String[] include, String[] exclude, String[] index, String[] metadata, Map conflations) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFileClass__SWIG_0(swigCPtr, this, name, iterator, parser, tokenizer, startDocTag, endDocTag, endMetadataTag, include, exclude, index, metadata, conflations);
}
/**
Get a named file class.
@param name The name of the file class to retrieve.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification getFileClassSpec(String name) throws java.lang.Exception {
long cPtr = vank_goJNI.IndexEnvironment_getFileClassSpec(swigCPtr, this, name);
return (cPtr == 0) ? null : new SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification(cPtr, false);
}
/**
Add a file class.
@param spec The file class to add.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFileClass(SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification spec) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFileClass__SWIG_1(swigCPtr, this, SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification.getCPtr(spec));
}
/**
Delete an existing document.
@param documentID The document to delete.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void deleteDocument(int documentID) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_deleteDocument(swigCPtr, this, documentID);
}
/**
Set names of fields to be indexed. This call indicates to the index that information about
these fields should be stored in the index so they can be used in queries. This does not
affect whether or not the text in a particular field is stored in an index.
@param fieldNames the list of fields.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setIndexedFields(String[] fieldNames) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setIndexedFields(swigCPtr, this, fieldNames);
}
/**
Set the numeric property of a field.
@param fieldName the field.
@param isNumeric true if the field is a numeric field, false if not.
@param parserName The name of the Transformation to use to compute the numeric value of the field. Repository currently recognizes the name NumericFieldAnnotator.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setNumericField(String fieldName, boolean isNumeric, String parserName) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setNumericField__SWIG_0(swigCPtr, this, fieldName, isNumeric, parserName);
}
/**
Set the numeric property of a field.
@param fieldName the field.
@param isNumeric true if the field is a numeric field, false if not.
@param parserName The name of the Transformation to use to compute the numeric value of the field. Repository currently recognizes the name NumericFieldAnnotator.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setNumericField(String fieldName, boolean isNumeric) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setNumericField__SWIG_1(swigCPtr, this, fieldName, isNumeric);
}
/**
Set the ordinal property of a field. If child, parent, or
ancestor field queries are slow, you may want to be certain to index
the specified fields explicitly as an ordinal. This speeds
things up at the cost of a minimal amount of disk space.
@param fieldName the field.
@param isOrdinal true if the field is an ordinal field, false if not.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setOrdinalField(String fieldName, boolean isOrdinal) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setOrdinalField(swigCPtr, this, fieldName, isOrdinal);
}
/**
Set the parental property of a field. If child, parent, or
ancestor field queries are slow, you may want to be certain to index
the specified fields explicitly as an ordinal. This speeds
things up at the cost of a minimal amount of disk space.
@param fieldName the field.
@param isParental true if the field is a parental field, false if not.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setParentalField(String fieldName, boolean isParental) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setParentalField(swigCPtr, this, fieldName, isParental);
}
/**
Set names of metadata fields to be indexed for fast retrieval.
The forward fields are indexed in a B-Tree mapping (documentID, metadataValue).
If a field is not forward indexed, the documentMetadata calls will still work, but they
will be slower (the document has to be retrieved, decompressed and parsed to get the metadata back,
instead of just a B-Tree lookup). The backward indexed fields store a mapping of (metadataValue, documentID).
If a field is not backward indexed, the documentIDsFromMetadata and documentFromMetadata calls will not work.
@param forward the list of fields to forward index.
@param backward the list of fields to backward index.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMetadataIndexedFields(String[] forward, String[] backward) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setMetadataIndexedFields(swigCPtr, this, forward, backward);
}
/**
set the list of stopwords
@param stopwords the list of stopwords
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStopwords(String[] stopwords) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setStopwords(swigCPtr, this, stopwords);
}
/**
set the stemmer to use
@param stemmer the stemmer to use. One of krovetz, porter
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStemmer(String stemmer) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setStemmer(swigCPtr, this, stemmer);
}
/**
set the amount of memory to use for internal structures
@param memory the number of bytes to use.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMemory(long memory) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setMemory(swigCPtr, this, memory);
}
/**
set the amount of memory to use for internal structures
@param memory the number of bytes to use.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMaxDocs(long maxdocs) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setMaxDocs(swigCPtr, this, maxdocs);
}
/**
set normalization of case and some punctuation; default is true (normalize during indexing and at query time)
@param normalize True, if text should be normalized, false otherwise.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setNormalization(boolean normalize) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setNormalization(swigCPtr, this, normalize);
}
/**
set the storeDocs flag
@param flag, false to not store documents in the compressed
collection, true to do so (default)
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStoreDocs(boolean flag) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setStoreDocs(swigCPtr, this, flag);
}
/**
create a new index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void create(String repositoryPath, IndexStatus callback) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_create__SWIG_0(swigCPtr, this, repositoryPath, IndexStatus.getCPtr(callback), callback);
}
/**
create a new index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void create(String repositoryPath) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_create__SWIG_1(swigCPtr, this, repositoryPath);
}
/**
open an existing index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void open(String repositoryPath, IndexStatus callback) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_open__SWIG_0(swigCPtr, this, repositoryPath, IndexStatus.getCPtr(callback), callback);
}
/**
open an existing index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void open(String repositoryPath) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_open__SWIG_1(swigCPtr, this, repositoryPath);
}
/**
close the index and repository
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void close() throws java.lang.Exception {
vank_goJNI.IndexEnvironment_close(swigCPtr, this);
}
/**
Add the text in a file to the index and repository. The fileClass of this file
will be chosen based on the file extension. If the file has no extension, it will
be skipped. Information about indexing progress will be passed to the callback.
@param fileName the file to add
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFile(String fileName, IndexDocumentMetaCallback metaCB) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFile__SWIG_0(swigCPtr, this, fileName, IndexDocumentMetaCallback.getCPtr(metaCB), metaCB);
}
/**
add a file of the specified file class to the index and repository
@param fileName the file to add
@param fileClass the file class to add (eg trecweb).
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFile(String fileName, String fileClass, IndexDocumentMetaCallback metaCB) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFile__SWIG_1(swigCPtr, this, fileName, fileClass, IndexDocumentMetaCallback.getCPtr(metaCB), metaCB);
}
/**
Adds a string to the index and repository. The documentString is assumed to contain the kind of
text that would be found in a file of type fileClass.
@param fileName the document to add
@param fileClass the file class to add (eg trecweb).
@param metadata the metadata pairs associated with the string.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int addString(String fileName, String fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t metadata) throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_addString__SWIG_0(swigCPtr, this, fileName, fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t.getCPtr(metadata));
}
/**
Adds a string to the index and repository. The documentString is assumed to contain the kind of
text that would be found in a file of type fileClass.
@param documentString the document string to add.
@param fileClass the file class, signaling which parser to use while processing the document string.
@param metadata a map of metadata String name to String value.
@param tags offset annotations to be indexed as field data. The
begin and end values of each TagExtent specify <b>byte</b> (not
character or token) offsets within the document string. These
byte offsets are converted to token offsets after document
string parsing.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int addString(String documentString, String fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t metadata, TagExtent[] tags) throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_addString__SWIG_1(swigCPtr, this, documentString, fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t.getCPtr(metadata), tags);
}
/**
add an already parsed document to the index and repository
@param document the document to add
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int addParsedDocument(SWIGTYPE_p_vank__api__ParsedDocument document) throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_addParsedDocument(swigCPtr, this, SWIGTYPE_p_vank__api__ParsedDocument.getCPtr(document));
}
/**
Returns the number of documents indexed so far in this session.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int documentsIndexed() throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_documentsIndexed(swigCPtr, this);
}
/**
Returns the number of documents considered for indexing,
which is the sum of the documents indexed and the documents
skipped.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int documentsSeen() throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_documentsSeen(swigCPtr, this);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class IndexStatus {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IndexStatus(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IndexStatus obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_IndexStatus(swigCPtr);
}
swigCPtr = 0;
}
}
public void status(int code, String documentPath, String error, int documentsIndexed, int documentsSeen) {
vank_goJNI.IndexStatus_status(swigCPtr, this, code, documentPath, error, documentsIndexed, documentsSeen);
}
public final static class action_code {
public final static IndexStatus.action_code FileOpen = new IndexStatus.action_code("FileOpen");
public final static IndexStatus.action_code FileSkip = new IndexStatus.action_code("FileSkip");
public final static IndexStatus.action_code FileError = new IndexStatus.action_code("FileError");
public final static IndexStatus.action_code FileClose = new IndexStatus.action_code("FileClose");
public final static IndexStatus.action_code DocumentCount = new IndexStatus.action_code("DocumentCount");
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static action_code swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + action_code.class + " with value " + swigValue);
}
private action_code(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private action_code(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private action_code(String swigName, action_code swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static action_code[] swigValues = { FileOpen, FileSkip, FileError, FileClose, DocumentCount };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class Parameters {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Parameters(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Parameters obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_Parameters(swigCPtr);
}
swigCPtr = 0;
}
}
public Parameters() {
this(vank_goJNI.new_Parameters(), true);
}
public void set(String value) {
vank_goJNI.Parameters_set(swigCPtr, value);
}
public boolean get_bool(String name, boolean def) {
return vank_goJNI.Parameters_get_bool(swigCPtr, name, def);
}
public int get_int(String name, int def) {
return vank_goJNI.Parameters_get_int(swigCPtr, name, def);
}
public double get_double(String name, double def) {
return vank_goJNI.Parameters_get_double(swigCPtr, name, def);
}
public long get_INT64(String name, long def) {
return vank_goJNI.Parameters_get_INT64(swigCPtr, name, def);
}
public String get_string(String name, String def) {
return vank_goJNI.Parameters_get_string(swigCPtr, name, def);
}
public void remove(String path) {
vank_goJNI.Parameters_remove(swigCPtr, path);
}
public void set_bool(String name, boolean value) {
vank_goJNI.Parameters_set_bool(swigCPtr, name, value);
}
public void set_string(String name, String value) {
vank_goJNI.Parameters_set_string(swigCPtr, name, value);
}
public void set_int(String name, int value) {
vank_goJNI.Parameters_set_int(swigCPtr, name, value);
}
public void set_UINT64(String name, long value) {
vank_goJNI.Parameters_set_UINT64(swigCPtr, name, value);
}
public void set_double(String name, double value) {
vank_goJNI.Parameters_set_double(swigCPtr, name, value);
}
public void clear() {
vank_goJNI.Parameters_clear(swigCPtr);
}
public long size() {
return vank_goJNI.Parameters_size(swigCPtr);
}
public boolean exists(String name) {
return vank_goJNI.Parameters_exists(swigCPtr, name);
}
public void load(String text) {
vank_goJNI.Parameters_load(swigCPtr, text);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class ParsedDocument {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ParsedDocument(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ParsedDocument obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_ParsedDocument(swigCPtr);
}
swigCPtr = 0;
}
}
public String getContent() {
return vank_goJNI.ParsedDocument_getContent(swigCPtr);
}
public ParsedDocument() {
this(vank_goJNI.new_ParsedDocument(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class PonteExpander extends QueryExpander {
private transient long swigCPtr;
protected PonteExpander(long cPtr, boolean cMemoryOwn) {
super(vank_goJNI.PonteExpander_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PonteExpander obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_PonteExpander(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PonteExpander(QueryEnvironment env, Map param) {
this(vank_goJNI.new_PonteExpander(QueryEnvironment.getCPtr(env), env, param), true);
}
public String expand(String originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t results) {
return vank_goJNI.PonteExpander_expand(swigCPtr, this, originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t.getCPtr(results));
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class QueryAnnotation {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected QueryAnnotation(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(QueryAnnotation obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
/**
@return ScoredExtentResults for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_QueryAnnotation(swigCPtr);
}
swigCPtr = 0;
}
}
/**
@return QueryAnnotationNodes for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public QueryAnnotationNode getQueryTree() throws java.lang.Exception {
return vank_goJNI.QueryAnnotation_getQueryTree(swigCPtr, this);
}
/**
@return Annotations for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public java.util.Map getAnnotations() throws java.lang.Exception {
return vank_goJNI.QueryAnnotation_getAnnotations(swigCPtr, this);
}
/**
@return ScoredExtentResults for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public ScoredExtentResult[] getResults() throws java.lang.Exception {
return vank_goJNI.QueryAnnotation_getResults(swigCPtr, this);
}
/**
@return ScoredExtentResults for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public QueryAnnotation() {
this(vank_goJNI.new_QueryAnnotation(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class QueryAnnotationNode {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected QueryAnnotationNode(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(QueryAnnotationNode obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_QueryAnnotationNode(swigCPtr);
}
swigCPtr = 0;
}
}
public QueryAnnotationNode() {
this(vank_goJNI.new_QueryAnnotationNode(), true);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment