- Removed unused or duplicate imports.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2003-01-29 17:18:55 +00:00
parent 32f7d24447
commit 201b56a2c4
34 changed files with 14 additions and 57 deletions

View File

@ -54,8 +54,6 @@ package org.apache.lucene.analysis;
* <http://www.apache.org/>.
*/
import org.apache.lucene.index.TermPositions;
/** A Token is an occurence of a term from the text of a field. It consists of
a term's text, the start and end offset of the term in the text of the field,
and a type string.

View File

@ -55,7 +55,6 @@ package org.apache.lucene.analysis.de;
*/
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.LowerCaseFilter;
import org.apache.lucene.analysis.StopFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.standard.StandardFilter;
@ -164,7 +163,7 @@ public class GermanAnalyzer extends Analyzer
* Creates a TokenStream which tokenizes all the text in the provided Reader.
*
* @return A TokenStream build from a StandardTokenizer filtered with
* StandardFilter, StopFilter, GermanStemFilter and LowerCaseFilter
* StandardFilter, StopFilter, GermanStemFilter
*/
public TokenStream tokenStream( String fieldName, Reader reader )
{

View File

@ -55,13 +55,9 @@ package org.apache.lucene.analysis.ru;
*/
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.LowerCaseFilter;
import org.apache.lucene.analysis.StopFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.standard.StandardFilter;
import org.apache.lucene.analysis.standard.StandardTokenizer;
import java.io.File;
import java.io.Reader;
import java.util.Hashtable;

View File

@ -58,7 +58,6 @@ import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
import java.io.IOException;
import java.util.Hashtable;
/**
* A filter that stems Russian words. The implementation was inspired by GermanStemFilter.

View File

@ -58,9 +58,6 @@ import java.util.Enumeration;
import java.util.List;
import java.util.ArrayList;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.Hits;
/** Documents are the unit of indexing and search.
*
* A Document is a set of fields. Each field has a name and a textual value.

View File

@ -56,9 +56,6 @@ package org.apache.lucene.document;
import java.io.Reader;
import java.util.Date;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.Similarity;
import org.apache.lucene.search.Hits;
/**
A field is a section of a Document. Each field has two parts, a name and a

View File

@ -54,8 +54,6 @@ package org.apache.lucene.index;
* <http://www.apache.org/>.
*/
import java.util.Enumeration;
import java.util.Hashtable;
import java.io.IOException;
import org.apache.lucene.store.Directory;

View File

@ -55,7 +55,6 @@ package org.apache.lucene.index;
*/
import java.util.Enumeration;
import java.util.Hashtable;
import java.io.IOException;
import org.apache.lucene.store.Directory;

View File

@ -62,7 +62,6 @@ import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.Lock;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
/** IndexReader is an abstract class, providing an interface for accessing an
index. Search of an index is done entirely through this abstract interface,

View File

@ -68,7 +68,6 @@ import org.apache.lucene.store.OutputStream;
import org.apache.lucene.search.Similarity;
import org.apache.lucene.document.Document;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.search.Similarity;
/**

View File

@ -60,8 +60,6 @@ import java.io.IOException;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.OutputStream;
import org.apache.lucene.store.InputStream;
import org.apache.lucene.document.Document;
import org.apache.lucene.util.PriorityQueue;
import org.apache.lucene.util.BitVector;
final class SegmentMerger {

View File

@ -55,7 +55,6 @@ package org.apache.lucene.index;
*/
import java.io.IOException;
import org.apache.lucene.document.Document;
/** TermDocs provides an interface for enumerating &lt;document, frequency&gt;
pairs for a term. <p> The document portion names each document containing

View File

@ -57,7 +57,6 @@ package org.apache.lucene.index;
import java.io.IOException;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.InputStream;
/** This stores a monotonically increasing set of <Term, TermInfo> pairs in a
* Directory. Pairs are accessed either by Term or by ordinal position the

View File

@ -55,8 +55,6 @@ package org.apache.lucene.index;
*/
import java.io.IOException;
import org.apache.lucene.document.Document;
/**
* TermPositions provides an interface for enumerating the &lt;document,

View File

@ -54,8 +54,6 @@ package org.apache.lucene.search;
* <http://www.apache.org/>.
*/
import org.apache.lucene.document.Document;
/** Expert: Default scoring implementation. */
public class DefaultSimilarity extends Similarity {
/** Implemented as <code>1/sqrt(numTerms)</code>. */

View File

@ -55,7 +55,6 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.util.*;
import org.apache.lucene.index.*;

View File

@ -57,7 +57,6 @@ package org.apache.lucene.search;
import java.io.IOException;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermEnum;
/** Subclass of FilteredTermEnum for enumerating all terms that are similiar to the specified filter term.

View File

@ -56,9 +56,8 @@ package org.apache.lucene.search;
import java.io.IOException;
import java.util.Vector;
import java.util.BitSet;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.IndexReader;
/** A ranked list of documents, used to hold search results. */
public final class Hits {

View File

@ -61,7 +61,6 @@ import org.apache.lucene.store.Directory;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.util.PriorityQueue;
/** Implements search over a single IndexReader.
*

View File

@ -55,11 +55,9 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
import org.apache.lucene.util.PriorityQueue;
/** Implements search over a set of <code>Searchables</code>.
*

View File

@ -55,10 +55,9 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermEnum;
/**
* A {@link Query} that matches documents containing a subset of terms provided

View File

@ -62,7 +62,6 @@ import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.MultipleTermPositions;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermPositions;
import org.apache.lucene.index.TermDocs;
import org.apache.lucene.search.Query;
/**

View File

@ -58,7 +58,6 @@ import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermDocs;
import org.apache.lucene.index.TermPositions;
import org.apache.lucene.index.IndexReader;

View File

@ -55,7 +55,7 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.util.*;
import org.apache.lucene.index.*;

View File

@ -55,9 +55,9 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermEnum;
import org.apache.lucene.index.TermDocs;
import org.apache.lucene.index.IndexReader;
/** A Query that matches documents containing terms with a specified prefix. */

View File

@ -55,9 +55,9 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermEnum;
import org.apache.lucene.index.TermDocs;
import org.apache.lucene.index.IndexReader;
/** A Query that matches documents within an exclusive range. */

View File

@ -55,15 +55,15 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.IndexReader;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.RMISecurityManager;
import java.rmi.server.UnicastRemoteObject;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
/** A remote searchable implementation. */
public class RemoteSearchable
extends UnicastRemoteObject

View File

@ -55,9 +55,9 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.IndexReader;
/** The interface for search implementations.
*

View File

@ -55,9 +55,6 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.IndexReader;
/** An abstract base class for search implementations.
* Implements some common utility methods.

View File

@ -56,11 +56,8 @@ package org.apache.lucene.search;
import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.index.Term;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.IndexWriter;
/** Expert: Scoring API.
* <p>Subclasses implement search scoring.

View File

@ -55,7 +55,7 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import java.util.Vector;
import org.apache.lucene.util.*;
import org.apache.lucene.index.*;

View File

@ -55,7 +55,7 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermDocs;
final class TermScorer extends Scorer {

View File

@ -55,9 +55,9 @@ package org.apache.lucene.search;
*/
import java.io.IOException;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermEnum;
/**
* Subclass of FilteredTermEnum for enumerating all terms that match the

View File

@ -57,7 +57,6 @@ package org.apache.lucene.store;
import java.io.IOException;
import java.io.File;
import java.io.RandomAccessFile;
import java.io.FileNotFoundException;
import java.util.Hashtable;
import org.apache.lucene.util.Constants;