public interface SearchManagerImplementor extends SearchManager
Modifier and Type | Method and Description |
---|---|
void |
registerKeyTransformer(Class<?> keyClass,
Class<? extends Transformer> transformerClass)
Registers a
Transformer for the supplied key class. |
void |
setTimeoutExceptionFactory(org.hibernate.search.query.engine.spi.TimeoutExceptionFactory timeoutExceptionFactory)
Define the timeout exception factory to customize the exception thrown when the query timeout
is exceeded.
|
buildQueryBuilderForClass, getClusteredQuery, getMassIndexer, getQuery, getQueryFactory, getSearchFactory
void registerKeyTransformer(Class<?> keyClass, Class<? extends Transformer> transformerClass)
Transformer
for the supplied key class. When storing
keys in cache that are neither simple (String, int, ...) nor annotated with @Transformable,
Infinispan-Query will need to know what Transformer to use when transforming the keys to
Strings. Clients must specify what Transformer to use for a particular key class by
registering it through this method.keyClass
- the key class for which the supplied transformerClass should be usedtransformerClass
- the transformer class to use for the supplied key classvoid setTimeoutExceptionFactory(org.hibernate.search.query.engine.spi.TimeoutExceptionFactory timeoutExceptionFactory)
timeoutExceptionFactory
- the timeout exception factory to useCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.