@Immutable public final class TextExtractors extends Object
TextExtractor
instances and submitting text extraction workModifier and Type | Class and Description |
---|---|
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.
|
Constructor and Description |
---|
TextExtractors(ExecutorService extractingQueue,
boolean fullTextSearchEnabled,
List<TextExtractor> extractors) |
Modifier and Type | Method and Description |
---|---|
CountDownLatch |
extract(AbstractBinaryStore store,
BinaryValue binaryValue,
TextExtractor.Context context) |
String |
extract(InMemoryBinaryValue inMemoryBinaryValue,
TextExtractor.Context context) |
boolean |
extractionEnabled() |
CountDownLatch |
getWorkerLatch(BinaryKey binaryKey,
boolean createIfMissing) |
protected void |
shutdown() |
public TextExtractors(ExecutorService extractingQueue, boolean fullTextSearchEnabled, List<TextExtractor> extractors)
protected void shutdown()
public boolean extractionEnabled()
public String extract(InMemoryBinaryValue inMemoryBinaryValue, TextExtractor.Context context)
public CountDownLatch extract(AbstractBinaryStore store, BinaryValue binaryValue, TextExtractor.Context context)
public CountDownLatch getWorkerLatch(BinaryKey binaryKey, boolean createIfMissing)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.