lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whosc...@apache.org
Subject svn commit: r354001 - in /lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory: MemoryIndex.java PatternAnalyzer.java SynonymMap.java
Date Mon, 05 Dec 2005 07:11:04 GMT
Author: whoschek
Date: Sun Dec  4 23:11:02 2005
New Revision: 354001

URL: http://svn.apache.org/viewcvs?rev=354001&view=rev
Log:
javadoc cosmetics

Modified:
    lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
    lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
    lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/SynonymMap.java

Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java?rev=354001&r1=354000&r2=354001&view=diff
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
(original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
Sun Dec  4 23:11:02 2005
@@ -354,6 +354,8 @@
 	/**
 	 * Creates and returns a searcher that can be used to execute arbitrary
 	 * Lucene queries and to collect the resulting query results as hits.
+	 * 
+	 * @return a searcher
 	 */
 	public IndexSearcher createSearcher() {
 		MemoryIndexReader reader = new MemoryIndexReader();
@@ -371,8 +373,7 @@
 	 * @return the relevance score of the matchmaking; A number in the range
 	 *         [0.0 .. 1.0], with 0.0 indicating no match. The higher the number
 	 *         the better the match.
-	 * @see org.apache.lucene.queryParser.QueryParser#parse(String, String,
-	 *      Analyzer)
+	 * @see org.apache.lucene.queryParser.QueryParser#parse(String)
 	 */
 	public float search(Query query) {
 		if (query == null) 
@@ -412,6 +413,8 @@
 	 * this instance. Useful for smart memory sensititve caches/pools. Assumes
 	 * fieldNames are interned, whereas tokenized terms are memory-overlaid. For
 	 * simplicity, assumes no VM word boundary alignment of instance vars.
+	 * 
+	 * @return the main memory consumption
 	 */
 	public int getMemorySize() {
 		// for example usage in a smart cache see nux.xom.pool.Pool
@@ -471,7 +474,11 @@
 		return entries;
 	}
 	
-	/** Returns a String representation of the index data for debugging purposes. */
+	/**
+	 * Returns a String representation of the index data for debugging purposes.
+	 * 
+	 * @return the string representation
+	 */
 	public String toString() {
 		StringBuffer result = new StringBuffer(256);		
 		sortFields();		

Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java?rev=354001&r1=354000&r2=354001&view=diff
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
(original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
Sun Dec  4 23:11:02 2005
@@ -174,6 +174,7 @@
 	 *            the name of the field to tokenize (currently ignored).
 	 * @param text
 	 *            the string to tokenize
+	 * @return a new token stream
 	 */
 	public TokenStream tokenStream(String fieldName, String text) {
 		// Ideally the Analyzer superclass should have a method with the same signature, 
@@ -200,6 +201,12 @@
 	 * Creates a token stream that tokenizes all the text in the given Reader;
 	 * This implementation forwards to <code>tokenStream(String, String)</code>
and is
 	 * less efficient than <code>tokenStream(String, String)</code>.
+	 * 
+	 * @param fieldName
+	 *            the name of the field to tokenize (currently ignored).
+	 * @param reader
+	 *            the reader delivering the text
+	 * @return a new token stream
 	 */
 	public TokenStream tokenStream(String fieldName, Reader reader) {
 		if (reader instanceof FastStringReader) { // fast path
@@ -214,7 +221,13 @@
 		}
 	}
 	
-	/**  Indicates whether some other object is "equal to" this one. */
+	/**
+	 * Indicates whether some other object is "equal to" this one.
+	 * 
+	 * @param other
+	 *            the reference object with which to compare.
+	 * @return true if equal, false otherwise
+	 */
 	public boolean equals(Object other) {
 		if (this  == other) return true;
 		if (this  == DEFAULT_ANALYZER && other == EXTENDED_ANALYZER) return false;
@@ -230,7 +243,11 @@
 		return false;
 	}
 	
-	/** Returns a hash code value for the object. */
+	/**
+	 * Returns a hash code value for the object.
+	 * 
+	 * @return the hash code.
+	 */
 	public int hashCode() {
 		if (this == DEFAULT_ANALYZER) return -1218418418; // fast path
 		if (this == EXTENDED_ANALYZER) return 1303507063; // fast path

Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/SynonymMap.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/SynonymMap.java?rev=354001&r1=354000&r2=354001&view=diff
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/SynonymMap.java
(original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/SynonymMap.java
Sun Dec  4 23:11:02 2005
@@ -116,7 +116,11 @@
 		return copy;
 	}
 	
-	/** Returns a String representation of the index data for debugging purposes. */
+	/**
+	 * Returns a String representation of the index data for debugging purposes.
+	 * 
+	 * @return a String representation
+	 */
 	public String toString() {
 		StringBuffer buf = new StringBuffer();
 		Iterator iter = new TreeMap(table).keySet().iterator();



Mime
View raw message