org.compass.gps.device.jpa.indexer
Class OpenJPAJpaIndexEntitiesIndexer
java.lang.Object
org.compass.gps.device.jpa.indexer.OpenJPAJpaIndexEntitiesIndexer
- All Implemented Interfaces:
- JpaIndexEntitiesIndexer, IndexEntitiesIndexer
public class OpenJPAJpaIndexEntitiesIndexer
- extends Object
- implements JpaIndexEntitiesIndexer
OpenJPA indexer that uses fetch plan to scroll the result set and index it. Performs
better than JPA setFirstResult and setMaxResults especially
for large result sets.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenJPAJpaIndexEntitiesIndexer
public OpenJPAJpaIndexEntitiesIndexer()
setJpaGpsDevice
public void setJpaGpsDevice(JpaGpsDevice jpaGpsDevice)
- Description copied from interface:
JpaIndexEntitiesIndexer
- Sets the jpa gps device for the given indexer. Called once when the device
starts up.
- Specified by:
setJpaGpsDevice in interface JpaIndexEntitiesIndexer
performIndex
public void performIndex(CompassSession session,
IndexEntity[] entities)
- Description copied from interface:
IndexEntitiesIndexer
- Performs the actual indexing of the list of index entities. Usually, an
index entity represent a group of indexable content (like a certain class
when using ORM, or a select statement). This method perform the fetching
of the data and indexing it in Compass using the provided Compass session.
- Specified by:
performIndex in interface IndexEntitiesIndexer
- Parameters:
session - The compass session to index the data withentities - A list of entities to perform the indexing by
Copyright (c) 2004-2008 The Compass Project.