
src.it.unimi.dsi.mg4j.index.TooManyTermsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mg4j Show documentation
Show all versions of mg4j Show documentation
MG4J (Managing Gigabytes for Java) is a free full-text search engine for large document collections written in Java.
The newest version!
package it.unimi.dsi.mg4j.index;
/*
* MG4J: Managing Gigabytes for Java
*
* Copyright (C) 2006-2011 Sebastiano Vigna
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, see .
*
*/
/** Thrown to indicate that a prefix query generated too many terms.
*
* @author Sebastiano Vigna
*/
public class TooManyTermsException extends Exception {
private static final long serialVersionUID = 0L;
public final int numberOfTerms;
public TooManyTermsException( final int numberOfTerms ) {
this.numberOfTerms = numberOfTerms;
}
public String toString() {
return "Too many terms for a prefix: " + Integer.toString( numberOfTerms );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy