|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.compass.core.lucene.support.ResourceHelper
public abstract class ResourceHelper
A set of helper methods around Resource
.
Constructor Summary | |
---|---|
ResourceHelper()
|
Method Summary | |
---|---|
static Query |
buildResourceLoadQuery(ResourceKey resourceKey)
Constructs a query that can be used to load the given resource based on the resource key. |
static Resource[] |
hitsToResourceArray(Hits hits,
LuceneSearchEngine searchEngine)
Converts a set of hits into an array of resources. |
static Resource[] |
hitsToResourceArray(TermDocs termDocs,
IndexReader indexReader,
LuceneSearchEngine searchEngine)
Converts terms docs into an array of resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceHelper()
Method Detail |
---|
public static Query buildResourceLoadQuery(ResourceKey resourceKey)
public static Resource[] hitsToResourceArray(TermDocs termDocs, IndexReader indexReader, LuceneSearchEngine searchEngine) throws IOException
IOException
public static Resource[] hitsToResourceArray(Hits hits, LuceneSearchEngine searchEngine) throws SearchEngineException
SearchEngineException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |