Package org.hibernate.search.backend

Examples of org.hibernate.search.backend.UpdateWork


    final Object entity = event.getEntity();
    DocumentBuilder<Object> builder = documentBuilders.get( entity.getClass() );
    if ( builder != null ) {
      Serializable id = event.getId();
      Document doc = builder.getDocument( entity, id );
      UpdateWork work = new UpdateWork( id, entity.getClass(), doc );
      processWork( work, event );
    }
  }
View Full Code Here


    FullTextIndexEventListener listener = ContextHelper.getLuceneEventListener( session );
    DocumentBuilder<Object> builder = listener.getDocumentBuilders().get( clazz );
    if ( builder != null ) {
      Serializable id = session.getIdentifier( entity );
      Document doc = builder.getDocument( entity, id );
      UpdateWork work = new UpdateWork( id, entity.getClass(), doc );
      processWork( work, listener.getDocumentBuilders(), listener.getLockableDirectoryProviders() );
    }
    //TODO
    //need to add elements in a queue kept at the Session level
    //the queue will be processed by a Lucene(Auto)FlushEventListener
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.UpdateWork

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.