org.modeshape.jcr
Class TextExtractors
java.lang.Object
org.modeshape.jcr.TextExtractors
@Immutable
public final class TextExtractors
- extends Object
Facility for managing TextExtractor
instances and submitting text extraction work
Nested Class Summary |
protected class |
TextExtractors.Worker
A unit of work which extracts text from a binary value, stores that text in a store and notifies a latch that the
extraction operation has finished. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextExtractors
public TextExtractors(ExecutorService extractingQueue,
boolean fullTextSearchEnabled,
List<TextExtractor> extractors)
shutdown
protected void shutdown()
extractionEnabled
public boolean extractionEnabled()
extract
public String extract(InMemoryBinaryValue inMemoryBinaryValue,
TextExtractor.Context context)
extract
public void extract(AbstractBinaryStore store,
BinaryValue binaryValue,
TextExtractor.Context context)
getWorkerLatch
public CountDownLatch getWorkerLatch(BinaryKey binaryKey,
boolean createIfMissing)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.