org.hibernate.search.indexes.impl
Class CommonPropertiesParse
java.lang.Object
org.hibernate.search.indexes.impl.CommonPropertiesParse
public class CommonPropertiesParse
- extends Object
Contains helper to parse properties which should be read by the majority
of IndexManager implementations.
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isExclusiveIndexUsageEnabled
public static boolean isExclusiveIndexUsageEnabled(String indexName,
Properties indexProps)
extractMaxQueueSize
public static int extractMaxQueueSize(String indexName,
Properties indexProps)
- Parameters:
indexName - indexProps - MaskedProperties for this IndexManager
- Returns:
- the maximum queue length to be used on the backends of this index
getOptimizerStrategy
public static OptimizerStrategy getOptimizerStrategy(IndexManager callback,
Properties indexProps)
extractIndexingPerformanceOptions
public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties indexProps)
- Creates a new
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.
- Parameters:
context - the build context.directoryProperties - The properties extracted from the configuration.provider - The directory provider for which to configure the indexing parameters.
createDirectoryBasedReaderProvider
public static DirectoryBasedReaderProvider createDirectoryBasedReaderProvider(DirectoryBasedIndexManager indexManager,
Properties cfg)
- Parameters:
directoryBasedIndexManager - cfg -
- Returns:
Copyright © 2006-2012 Hibernate. All Rights Reserved.