@Singleton @Named public class DefaultIndexUpdater extends Object implements IndexUpdater
Modifier and Type | Class and Description |
---|---|
static class |
DefaultIndexUpdater.FileFetcher
Filesystem-based ResourceFetcher implementation
|
Constructor and Description |
---|
DefaultIndexUpdater(IncrementalHandler incrementalHandler,
List<IndexUpdateSideEffect> sideEffects) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanCacheDirectory(File dir)
Cleans specified cache directory.
|
IndexUpdateResult |
fetchAndUpdateIndex(IndexUpdateRequest updateRequest) |
protected org.slf4j.Logger |
getLogger() |
Date |
getTimestamp(Properties properties,
String key) |
static IndexDataReader.IndexDataReadResult |
unpackIndexData(InputStream is,
org.apache.lucene.store.Directory d,
IndexingContext context)
Unpack index data using specified Lucene Index writer
|
@Inject public DefaultIndexUpdater(IncrementalHandler incrementalHandler, List<IndexUpdateSideEffect> sideEffects)
protected org.slf4j.Logger getLogger()
public IndexUpdateResult fetchAndUpdateIndex(IndexUpdateRequest updateRequest) throws IOException
fetchAndUpdateIndex
in interface IndexUpdater
IOException
public Date getTimestamp(Properties properties, String key)
public static IndexDataReader.IndexDataReadResult unpackIndexData(InputStream is, org.apache.lucene.store.Directory d, IndexingContext context) throws IOException
is
- an input stream to unpack index data fromw
- a writer to save index dataics
- a collection of index creators for updating unpacked documents.IOException
protected void cleanCacheDirectory(File dir) throws IOException
IOException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.