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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.List
get
in class java.util.AbstractList
i
- Indexpublic int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public ResultDoc[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.AbstractCollection
public static final java.lang.String getDateStamp()
public static void setDebug(boolean db)
db
- The new debug value