Package org.hibernate.search.impl

Examples of org.hibernate.search.impl.MutableSearchFactory


  }

  private void createCleanFactoryState() {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new HashMap<Class<?>, DocumentBuilderIndexedEntity<?>>() );
      factoryState.setDocumentBuildersContainedEntities( new HashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setDirectoryProviderData( new HashMap<DirectoryProvider<?>, DirectoryProviderData>() );
      factoryState.setFilterDefinitions( new HashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
View Full Code Here


  }

  private void createCleanFactoryState(SearchConfiguration cfg) {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new ConcurrentHashMap<Class<?>, EntityIndexBinding>() );
      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
View Full Code Here

  }

  private void createCleanFactoryState(SearchConfiguration cfg) {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new ConcurrentHashMap<Class<?>, EntityIndexBinder>() );
      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
View Full Code Here

  }

  private void createCleanFactoryState(SearchConfiguration cfg) {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new ConcurrentHashMap<Class<?>, EntityIndexBinder<?>>() );
      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
View Full Code Here

  }

  private void createCleanFactoryState() {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new HashMap<Class<?>, DocumentBuilderIndexedEntity<?>>() );
      factoryState.setDocumentBuildersContainedEntities( new HashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setDirectoryProviderData( new HashMap<DirectoryProvider<?>, DirectoryProviderData>() );
      factoryState.setFilterDefinitions( new HashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
View Full Code Here

  }

  private void createCleanFactoryState(SearchConfiguration cfg) {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new ConcurrentHashMap<Class<?>, EntityIndexBinding>() );
      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
View Full Code Here

  }

  private void createCleanFactoryState(SearchConfiguration cfg, BuildContext buildContext) {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new ConcurrentHashMap<Class<?>, EntityIndexBinding>() );
      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
View Full Code Here

   
    workListDAO.delete(workListEntity);   
  }
 
  private static IndexManager getIndexManager(SearchFactory searchFactory, String indexName) {
    MutableSearchFactory mutableSearchFactory = (MutableSearchFactory) searchFactory;
    IndexManagerHolder indexManagerHolder = mutableSearchFactory.getAllIndexesManager();
    return indexManagerHolder.getIndexManager(indexName);
  }
View Full Code Here

    IndexManagerHolder indexManagerHolder = mutableSearchFactory.getAllIndexesManager();
    return indexManagerHolder.getIndexManager(indexName);
  }

  private static BackendQueueProcessor createInstanceBackendQueueProcessor(SearchFactory searchFactory, IndexManager indexManager) {
    MutableSearchFactory mutableSearchFactory = (MutableSearchFactory) searchFactory;
    WorkerBuildContext context = new WorkerBuildContextImpl(mutableSearchFactory.getErrorHandler());
   
    Properties properties = mutableSearchFactory.getConfigurationProperties();
   
    GaeInstantBackendQueueProcessor queueProcessor = new GaeInstantBackendQueueProcessor();
    queueProcessor.initialize(properties, context, (DirectoryBasedIndexManager) indexManager);
   
    return queueProcessor;
View Full Code Here

  }

  private void createCleanFactoryState(SearchConfiguration cfg) {
    if ( rootFactory == null ) {
      //set the mutable structure of factory state
      rootFactory = new MutableSearchFactory();
      factoryState.setDocumentBuildersIndexedEntities( new ConcurrentHashMap<Class<?>, EntityIndexBinder>() );
      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
View Full Code Here

TOP

Related Classes of org.hibernate.search.impl.MutableSearchFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.