|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.Util
public class Util
Util provides various static utility methods.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
closeOrRelease(org.apache.lucene.index.IndexReader reader)
Depending on the type of the reader this method either
closes or releases the reader. |
static java.io.IOException |
createIOException(java.lang.Throwable t)
Creates an IOException with t as its cause. |
static org.apache.lucene.search.Query |
createMatchAllQuery(java.lang.String name,
IndexFormatVersion version)
Depending on the index format this method returns a query that matches all nodes that have a property with a given name. |
static void |
disposeDocument(org.apache.lucene.document.Document old)
Disposes the document old. |
static boolean |
isDocumentReady(org.apache.lucene.document.Document doc)
Returns true if the document is ready to be added to the
index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static void disposeDocument(org.apache.lucene.document.Document old)
old. Closes any potentially open
readers held by the document.
old - the document to dispose.public static boolean isDocumentReady(org.apache.lucene.document.Document doc)
true if the document is ready to be added to the
index. That is all text extractors have finished their work.
doc - the document to check.
true if the document is ready; false
otherwise.
public static org.apache.lucene.search.Query createMatchAllQuery(java.lang.String name,
IndexFormatVersion version)
name.
name - the property name.version - the index format version.
name.public static java.io.IOException createIOException(java.lang.Throwable t)
IOException with t as its cause.
t - the cause.
public static void closeOrRelease(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
reader this method either
closes or releases the reader. The reader is released if it implements
ReleaseableIndexReader.
reader - the index reader to close or release.
java.io.IOException - if an error occurs while closing or releasing the
index reader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||