@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 Logger |
getLogger() |
Date |
getTimestamp(Properties properties,
String key) |
static IndexDataReader.IndexDataReadResult |
unpackIndexData(InputStream is,
org.apache.lucene.store.Directory d,
IndexingContext context) |
@Inject public DefaultIndexUpdater(IncrementalHandler incrementalHandler, List<IndexUpdateSideEffect> sideEffects)
protected 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 fromd
- context
- IOException
protected void cleanCacheDirectory(File dir) throws IOException
IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.