public class ResultDocList
extends java.util.AbstractList
SimpleLuceneIndex,
ResultDoc| Constructor and Description |
|---|
ResultDocList()
Creates an empty ResultDocList that can not be expanded.
|
ResultDocList(ResultDoc[] resultDocs)
Creates a ResultDocList backed by the given resultDocs that can not be expanded.
|
ResultDocList(org.apache.lucene.search.TopDocs topDocs,
ResultDocConfig resultDocConfig)
Creates a ResultDocList backed by the given search results that can not be expanded.
|
| Modifier and Type | Method and Description |
|---|---|
ResultDoc |
get(int i)
Get the ResultDoc at the given location.
|
static java.lang.String |
getDateStamp()
Gets a datestamp of the current time formatted for display with logs and output.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the SimpleLuceneIndex object
|
int |
size()
The number of search results.
|
ResultDoc[] |
toArray()
Gets the ResultDocs as an array.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic ResultDocList()
public ResultDocList(ResultDoc[] resultDocs)
resultDocs - The result docs that back this ResultDocList.public ResultDocList(org.apache.lucene.search.TopDocs topDocs,
ResultDocConfig resultDocConfig)
topDocs - The TopDocsresultDocConfig - The configpublic ResultDoc get(int i)
get in interface java.util.Listget in class java.util.AbstractListi - Indexpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic ResultDoc[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.AbstractCollectionpublic static final java.lang.String getDateStamp()
public static void setDebug(boolean db)
db - The new debug value