add more missing javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-08-27 17:31:23 +00:00
parent 2b1926e4bf
commit c61a8c0b71
12 changed files with 36 additions and 5 deletions

View File

@ -25,8 +25,9 @@ import org.apache.lucene.search.FieldCache;
/** /**
* * Obtains short field values from the {@link org.apache.lucene.search.FieldCache}
* * using <code>getShorts()</code>
* and makes those values available as other numeric types, casting as needed.
**/ **/
public class ShortFieldSource extends FieldCacheSource { public class ShortFieldSource extends FieldCacheSource {

View File

@ -18,6 +18,10 @@ package org.apache.lucene.queryparser.surround.query;
import java.io.IOException; import java.io.IOException;
/**
* Interface for queries that can be nested as subqueries
* into a span near.
*/
public interface DistanceSubQuery { public interface DistanceSubQuery {
/** When distanceSubQueryNotAllowed() returns non null, the reason why the subquery /** When distanceSubQueryNotAllowed() returns non null, the reason why the subquery
* is not allowed as a distance subquery is returned. * is not allowed as a distance subquery is returned.

View File

@ -22,6 +22,9 @@ import java.util.Iterator;
import org.apache.lucene.search.Query; import org.apache.lucene.search.Query;
/**
* Forms an OR query of the provided query across multiple fields.
*/
public class FieldsQuery extends SrndQuery { /* mostly untested */ public class FieldsQuery extends SrndQuery { /* mostly untested */
private SrndQuery q; private SrndQuery q;
private List<String> fieldNames; private List<String> fieldNames;

View File

@ -21,6 +21,9 @@ import org.apache.lucene.search.Query;
import org.apache.lucene.search.BooleanQuery; import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.BooleanClause; import org.apache.lucene.search.BooleanClause;
/**
* Factory for prohibited clauses
*/
public class NotQuery extends ComposedQuery { public class NotQuery extends ComposedQuery {
public NotQuery(List<SrndQuery> queries, String opName) { super(queries, true /* infix */, opName); } public NotQuery(List<SrndQuery> queries, String opName) { super(queries, true /* infix */, opName); }

View File

@ -22,6 +22,9 @@ import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term; import org.apache.lucene.index.Term;
import org.apache.lucene.search.Query; import org.apache.lucene.search.Query;
/**
* Base class for queries that expand to sets of simple terms.
*/
public abstract class SimpleTerm public abstract class SimpleTerm
extends SrndQuery extends SrndQuery
implements DistanceSubQuery, Comparable<SimpleTerm> implements DistanceSubQuery, Comparable<SimpleTerm>
@ -67,6 +70,10 @@ public abstract class SimpleTerm
String fieldName, String fieldName,
MatchingTermVisitor mtv) throws IOException; MatchingTermVisitor mtv) throws IOException;
/**
* Callback to visit each matching term during "rewrite"
* in {@link #visitMatchingTerm(Term)}
*/
public interface MatchingTermVisitor { public interface MatchingTermVisitor {
void visitMatchingTerm(Term t)throws IOException; void visitMatchingTerm(Term t)throws IOException;
} }

View File

@ -27,6 +27,9 @@ import org.apache.lucene.index.MultiFields;
import java.io.IOException; import java.io.IOException;
/**
* Query that matches String prefixes
*/
public class SrndPrefixQuery extends SimpleTerm { public class SrndPrefixQuery extends SimpleTerm {
private final BytesRef prefixRef; private final BytesRef prefixRef;
public SrndPrefixQuery(String prefix, boolean quoted, char truncator) { public SrndPrefixQuery(String prefix, boolean quoted, char truncator) {

View File

@ -26,6 +26,9 @@ import org.apache.lucene.index.MultiFields;
import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRef;
/**
* Simple single-term clause
*/
public class SrndTermQuery extends SimpleTerm { public class SrndTermQuery extends SimpleTerm {
public SrndTermQuery(String termText, boolean quoted) { public SrndTermQuery(String termText, boolean quoted) {
super(quoted); super(quoted);

View File

@ -22,7 +22,9 @@ import org.apache.lucene.queryparser.xml.builders.*;
*/ */
/** /**
* * Assembles a QueryBuilder which uses Query objects from
* Lucene's <code>sandbox</code> and <code>queries</code>
* modules in addition to core queries.
*/ */
public class CorePlusExtensionsParser extends CoreParser { public class CorePlusExtensionsParser extends CoreParser {

View File

@ -26,7 +26,7 @@ import java.io.Reader;
*/ */
/** /**
* * Helper methods for parsing XML
*/ */
public class DOMUtils { public class DOMUtils {

View File

@ -20,7 +20,8 @@ package org.apache.lucene.queryparser.xml;
*/ */
/** /**
* * Thrown when the xml queryparser encounters
* invalid syntax/configuration.
*/ */
public class ParserException extends Exception { public class ParserException extends Exception {

View File

@ -26,6 +26,8 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
/** /**
* Caches the doubleVal of another value source in a HashMap
* so that it is computed only once.
* @lucene.internal * @lucene.internal
*/ */
public class CachingDoubleValueSource extends ValueSource { public class CachingDoubleValueSource extends ValueSource {

View File

@ -28,6 +28,8 @@ import org.apache.lucene.util.Bits;
import java.io.IOException; import java.io.IOException;
/** /**
* Filter that matches all documents where a valuesource is
* in between a range of <code>min</code> and <code>max</code>
* @lucene.internal * @lucene.internal
*/ */
public class ValueSourceFilter extends Filter { public class ValueSourceFilter extends Filter {