|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.indexes.impl.CommonPropertiesParse
public class CommonPropertiesParse
Contains helper to parse properties which should be read by the majority of IndexManager implementations.
Method Summary | |
---|---|
static DirectoryBasedReaderProvider |
createDirectoryBasedReaderProvider(DirectoryBasedIndexManager indexManager,
Properties cfg)
|
static LuceneIndexingParameters |
extractIndexingPerformanceOptions(Properties indexProps)
Creates a new LuceneIndexingParameters instance for the specified provider. |
static int |
extractMaxQueueSize(String indexName,
Properties indexProps)
|
static OptimizerStrategy |
getOptimizerStrategy(IndexManager callback,
Properties indexProps)
|
static boolean |
isExclusiveIndexUsageEnabled(Properties indexProps)
|
static boolean |
isIndexMetadataComplete(Properties indexProps,
WorkerBuildContext context)
Returns the configured value of Environment.INDEX_METADATA_COMPLETE for this specific index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isExclusiveIndexUsageEnabled(Properties indexProps)
public static boolean isIndexMetadataComplete(Properties indexProps, WorkerBuildContext context)
Environment.INDEX_METADATA_COMPLETE
for this specific index.
If no value is set, the default is defined by SearchConfiguration.isIndexMetadataComplete()
.
indexProps
- The index configuration propertiescontext
- The WorkerBuildContext provides a view of the default setting
true
when the index metadata is fully defined.public static int extractMaxQueueSize(String indexName, Properties indexProps)
indexName
- indexProps
- MaskedProperties for this IndexManager
public static OptimizerStrategy getOptimizerStrategy(IndexManager callback, Properties indexProps)
public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties indexProps)
LuceneIndexingParameters
instance for the specified provider.
If there are no matching properties in the configuration default values will be applied.
NOTE: If a non batch value is set in the configuration apply it also to the batch mode. This covers the case where users only specify parameters for the non batch mode. In this case the same parameters apply for batch indexing. Parameters are found "depth-first": if a batch parameter is set in a global scope it will take priority on local transaction parameters.
context
- the build context.directoryProperties
- The properties extracted from the configuration.provider
- The directory provider for which to configure the indexing parameters.public static DirectoryBasedReaderProvider createDirectoryBasedReaderProvider(DirectoryBasedIndexManager indexManager, Properties cfg)
directoryBasedIndexManager
- cfg
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |