Class IndexingConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.IndexingConfigurationBuilder
- All Implemented Interfaces:
Builder<IndexingConfiguration>,ConfigurationChildBuilder,IndexingConfigurationChildBuilder
public class IndexingConfigurationBuilder
extends Object
implements IndexingConfigurationChildBuilder, Builder<IndexingConfiguration>
Configures indexing of entries in the cache for searching.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddIndexedEntities(Class<?>... indexedEntities) addIndexedEntities(String... indexedEntities) addIndexedEntity(Class<?> indexedEntity) addIndexedEntity(String indexedEntity) addKeyTransformer(Class<?> keyClass, Class<?> keyTransformerClass) Registers a transformer for a key class.addProperty(String key, String value) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement.autoConfig(boolean autoConfig) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0 with no replacement.build()create()Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsdisable()enable()booleanenabled()enabled(boolean enabled) encoding()protected ConfigurationBuilderDeprecated, for removal: This API element is subject to removal in a future version.Since 11.0.indexing()locking()memory()query()read(IndexingConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.reader()voidreset()Wipe out all indexing configuration settings and disable indexing.security()setProperty(String key, Object value) booleansimpleCache(boolean simpleCache) sites()startupMode(IndexStartupMode startupMode) storage(IndexStorage storage) template(boolean template) toString()unsafe()voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig) withProperties(Properties props) writer()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
-
Field Details
-
builder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<IndexingConfiguration>
-
enabled
-
reader
- Specified by:
readerin interfaceIndexingConfigurationChildBuilder
-
writer
- Specified by:
writerin interfaceIndexingConfigurationChildBuilder
-
reset
public void reset()Wipe out all indexing configuration settings and disable indexing.- Specified by:
resetin interfaceBuilder<IndexingConfiguration>
-
enable
- Specified by:
enablein interfaceIndexingConfigurationChildBuilder
-
disable
- Specified by:
disablein interfaceIndexingConfigurationChildBuilder
-
enabled
public boolean enabled() -
path
- Specified by:
pathin interfaceIndexingConfigurationChildBuilder
-
storage
- Specified by:
storagein interfaceIndexingConfigurationChildBuilder
-
startupMode
- Specified by:
startupModein interfaceIndexingConfigurationChildBuilder
-
addKeyTransformer
public IndexingConfigurationBuilder addKeyTransformer(Class<?> keyClass, Class<?> keyTransformerClass) Registers a transformer for a key class.- Specified by:
addKeyTransformerin interfaceIndexingConfigurationChildBuilder- Parameters:
keyClass- the class of the keykeyTransformerClass- the class of the org.infinispan.query.Transformer that handles this key type- Returns:
this, for method chaining
-
addProperty
@Deprecated(forRemoval=true) public IndexingConfigurationBuilder addProperty(String key, String value) Deprecated, for removal: This API element is subject to removal in a future version.Defines a single property. Can be used multiple times to define all needed properties, but the full set is overridden bywithProperties(Properties).These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the the Hibernate Search reference of the version used by Infinispan Query.
- Parameters:
key- Property keyvalue- Property value- Returns:
this, for method chaining- See Also:
-
setProperty
@Deprecated(forRemoval=true) public IndexingConfigurationBuilder setProperty(String key, Object value) Deprecated, for removal: This API element is subject to removal in a future version.Defines a single value. Can be used multiple times to define all needed property values, but the full set is overridden bywithProperties(Properties).These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the the Hibernate Search reference of the version used by Infinispan Query.
- Parameters:
key- Property keyvalue- Property value- Returns:
this, for method chaining- See Also:
-
withProperties
Deprecated, for removal: This API element is subject to removal in a future version.The Query engine relies on properties for configuration.These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the Hibernate Search reference of the version you're using with Infinispan Query.
- Parameters:
props- the properties- Returns:
this, for method chaining- See Also:
-
index
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. This configuration will be removed in next major version as the index mode is calculated automatically.Indicates indexing mode -
autoConfig
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0 with no replacement.When enabled, applies to properties default configurations based on the cache type- Parameters:
autoConfig- boolean- Returns:
this, for method chaining
-
autoConfig
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement. -
addIndexedEntity
- Specified by:
addIndexedEntityin interfaceIndexingConfigurationChildBuilder
-
addIndexedEntities
- Specified by:
addIndexedEntitiesin interfaceIndexingConfigurationChildBuilder
-
addIndexedEntity
- Specified by:
addIndexedEntityin interfaceIndexingConfigurationChildBuilder
-
addIndexedEntities
- Specified by:
addIndexedEntitiesin interfaceIndexingConfigurationChildBuilder
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<IndexingConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<IndexingConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<IndexingConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
toString
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-
writer()andreader()to define indexing behavior.