org.hibernate.search.engine.spi
Interface EntityIndexBinding

All Known Subinterfaces:
EntityIndexBinder, MutableEntityIndexBinding<T>
All Known Implementing Classes:
DefaultMutableEntityIndexBinding, DynamicShardingEntityIndexBinding, EntityIndexBindingWrapper

public interface EntityIndexBinding

Specifies the relation and options from an indexed entity to its index(es).

Author:
Sanne Grinovero (C) 2011 Red Hat Inc., Hardy Ferentschik

Method Summary
 DocumentBuilderIndexedEntity<?> getDocumentBuilder()
           
 EntityIndexingInterceptor<?> getEntityIndexingInterceptor()
           
 FieldCacheCollectorFactory getIdFieldCacheCollectionFactory()
           
 IndexManager[] getIndexManagers()
           
 IndexShardingStrategy getSelectionStrategy()
           
 ShardIdentifierProvider getShardIdentifierProvider()
           
 org.apache.lucene.search.Similarity getSimilarity()
           
 void postInitialize(Set<Class<?>> indexedClasses)
          Called once during bootstrapping
 

Method Detail

getSimilarity

org.apache.lucene.search.Similarity getSimilarity()
Returns:
the Similarity used to search and index this entity

getSelectionStrategy

IndexShardingStrategy getSelectionStrategy()
Returns:
the sharding strategy

getShardIdentifierProvider

ShardIdentifierProvider getShardIdentifierProvider()
Returns:
the shard identifier provider. Can be null depending on selected IndexShardingStrategy.

getDocumentBuilder

DocumentBuilderIndexedEntity<?> getDocumentBuilder()
Returns:
the document builder for this binding

getIdFieldCacheCollectionFactory

FieldCacheCollectorFactory getIdFieldCacheCollectionFactory()
Returns:
factory for the field caches

postInitialize

void postInitialize(Set<Class<?>> indexedClasses)
Called once during bootstrapping

Parameters:
indexedClasses - set of indexed classes

getIndexManagers

IndexManager[] getIndexManagers()
Returns:
the array of index managers

getEntityIndexingInterceptor

EntityIndexingInterceptor<?> getEntityIndexingInterceptor()
Returns:
the interceptor for indexing operations. Can be null


Copyright © 2006–2013 Hibernate. All rights reserved.