![JAR search and dependency download from the Maven repository](/logo.png)
src.it.unimi.dsi.big.mg4j.index.snowball.Among Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mg4j-big Show documentation
Show all versions of mg4j-big Show documentation
MG4J (Managing Gigabytes for Java) is a free full-text search engine for large document collections written in Java. The big version is a fork of the original MG4J that can handle more than 2^31 terms and documents.
The newest version!
package it.unimi.dsi.big.mg4j.index.snowball;
import java.lang.reflect.Method;
public class Among {
public Among( String s, int substring_i, int result, String methodname, AbstractSnowballTermProcessor methodobject ) {
this.s_size = s.length();
this.s = s.toCharArray();
this.substring_i = substring_i;
this.result = result;
this.methodobject = methodobject;
if ( methodname.length() == 0 ) {
this.method = null;
}
else {
try {
this.method = methodobject.getClass().getDeclaredMethod( methodname, new Class[ 0 ] );
}
catch ( NoSuchMethodException e ) {
throw new RuntimeException( e );
}
}
}
public final int s_size; /* search string */
public final char[] s; /* search string */
public final int substring_i; /* index to longest matching substring */
public final int result; /* result of the lookup */
public final Method method; /* method to use if substring matches */
public final AbstractSnowballTermProcessor methodobject; /* object to invoke method on */
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy