public class ElasticsearchIndexManager extends Object implements IndexManager, IndexNameNormalizer
IndexManager
applying indexing work to an Elasticsearch server.Constructor and Description |
---|
ElasticsearchIndexManager() |
Modifier and Type | Method and Description |
---|---|
void |
addContainedEntity(Class<?> entity) |
void |
awaitAsyncProcessingCompletion() |
void |
destroy() |
void |
flushAndReleaseResources() |
String |
getActualIndexName() |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(String name) |
Set<Class<?>> |
getContainedTypes() |
IndexManagerType |
getIndexManagerType() |
String |
getIndexName() |
ReaderProvider |
getReaderProvider() |
LuceneWorkSerializer |
getSerializer() |
org.apache.lucene.search.similarities.Similarity |
getSimilarity() |
void |
initialize(String indexName,
Properties properties,
org.apache.lucene.search.similarities.Similarity similarity,
WorkerBuildContext context) |
boolean |
needsRefreshAfterWrite() |
void |
optimize() |
void |
performOperations(List<LuceneWork> workList,
IndexingMonitor monitor) |
void |
performStreamOperation(LuceneWork singleOperation,
IndexingMonitor monitor,
boolean forceAsync) |
void |
setSearchFactory(ExtendedSearchIntegrator boundSearchIntegrator) |
String |
toString() |
public void initialize(String indexName, Properties properties, org.apache.lucene.search.similarities.Similarity similarity, WorkerBuildContext context)
initialize
in interface IndexManager
public void destroy()
destroy
in interface IndexManager
public void setSearchFactory(ExtendedSearchIntegrator boundSearchIntegrator)
setSearchFactory
in interface IndexManager
public void addContainedEntity(Class<?> entity)
addContainedEntity
in interface IndexManager
public String getIndexName()
getIndexName
in interface IndexManager
public ReaderProvider getReaderProvider()
getReaderProvider
in interface IndexManager
public Set<Class<?>> getContainedTypes()
getContainedTypes
in interface IndexManager
public org.apache.lucene.search.similarities.Similarity getSimilarity()
getSimilarity
in interface IndexManager
public org.apache.lucene.analysis.Analyzer getAnalyzer(String name)
getAnalyzer
in interface IndexManager
public LuceneWorkSerializer getSerializer()
getSerializer
in interface IndexManager
public void flushAndReleaseResources()
flushAndReleaseResources
in interface IndexManager
public String getActualIndexName()
getActualIndexName
in interface IndexNameNormalizer
public boolean needsRefreshAfterWrite()
public void performOperations(List<LuceneWork> workList, IndexingMonitor monitor)
performOperations
in interface IndexManager
public void performStreamOperation(LuceneWork singleOperation, IndexingMonitor monitor, boolean forceAsync)
performStreamOperation
in interface IndexManager
public void awaitAsyncProcessingCompletion()
awaitAsyncProcessingCompletion
in interface IndexManager
public void optimize()
optimize
in interface IndexManager
public IndexManagerType getIndexManagerType()
getIndexManagerType
in interface IndexManager
Copyright © 2006–2017 Hibernate. All rights reserved.