@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.
|
Modifier | Constructor and Description |
---|---|
|
TextExtractors(ExecutorService extractingQueue,
List<TextExtractor> extractors) |
protected |
TextExtractors(JcrRepository.RunningState repository,
RepositoryConfiguration.TextExtraction extracting) |
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) |
void |
shutdown() |
public TextExtractors(ExecutorService extractingQueue, List<TextExtractor> extractors)
protected TextExtractors(JcrRepository.RunningState repository, RepositoryConfiguration.TextExtraction extracting)
public 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–2016 JBoss, a division of Red Hat. All rights reserved.