|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.document.AbstractField
org.apache.jackrabbit.core.query.lucene.LazyTextExtractorField
public class LazyTextExtractorField
LazyTextExtractorField implements a Lucene field with a String
value that is lazily initialized from a given Reader. In addition
this class provides a method to find out whether the purpose of the reader
is to extract text and whether the extraction process is already finished.
isExtractorFinished(),
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.document.AbstractField |
|---|
binaryLength, binaryOffset, boost, fieldsData, isBinary, isCompressed, isIndexed, isStored, isTokenized, lazy, name, omitNorms, omitTf, storeOffsetWithTermVector, storePositionWithTermVector, storeTermVector |
| Constructor Summary | |
|---|---|
LazyTextExtractorField(org.apache.tika.parser.Parser parser,
InternalValue value,
org.apache.tika.metadata.Metadata metadata,
Executor executor,
boolean highlighting)
Creates a new LazyTextExtractorField with the given
name. |
|
| Method Summary | |
|---|---|
byte[] |
binaryValue()
|
void |
dispose()
Releases all resources associated with this field. |
boolean |
isExtractorFinished()
Checks whether the text extraction task has finished. |
Reader |
readerValue()
|
String |
stringValue()
Returns the extracted text. |
org.apache.lucene.analysis.TokenStream |
tokenStreamValue()
|
| Methods inherited from class org.apache.lucene.document.AbstractField |
|---|
getBinaryLength, getBinaryOffset, getBinaryValue, getBinaryValue, getBoost, getOmitNorms, getOmitTf, isBinary, isCompressed, isIndexed, isLazy, isStored, isStoreOffsetWithTermVector, isStorePositionWithTermVector, isTermVectorStored, isTokenized, name, setBoost, setOmitNorms, setOmitTf, setStoreTermVector, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LazyTextExtractorField(org.apache.tika.parser.Parser parser,
InternalValue value,
org.apache.tika.metadata.Metadata metadata,
Executor executor,
boolean highlighting)
LazyTextExtractorField with the given
name.
name - the name of the field.reader - the reader where to obtain the string from.highlighting - set to true to
enable result highlighting support| Method Detail |
|---|
public String stringValue()
public Reader readerValue()
nullpublic byte[] binaryValue()
nullpublic org.apache.lucene.analysis.TokenStream tokenStreamValue()
nullpublic boolean isExtractorFinished()
true if the extracted text is availablepublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||