org.compass.gps.device.support.parallel
Interface IndexEntitiesIndexer

All Known Subinterfaces:
HibernateIndexEntitiesIndexer, JpaIndexEntitiesIndexer
All Known Implementing Classes:
DefaultJpaIndexEntitiesIndexer, HibernateJpaIndexEntitiesIndexer, OpenJPAJpaIndexEntitiesIndexer, PaginationHibernateIndexEntitiesIndexer, ScrollableHibernateIndexEntitiesIndexer

public interface IndexEntitiesIndexer

Handles indexing of the list of IndexEntity.

Usually, each IndexEntity represents a groups of the indexable content (like a certain class when using ORM or a select statement). It is then used to fetch the data and then index it. The process of fetching the data and indexing it in Compass is done by this interface implementation.

Author:
kimchy

Method Summary
 void performIndex(CompassSession session, IndexEntity[] entities)
          Performs the actual indexing of the list of index entities.
 

Method Detail

performIndex

void performIndex(CompassSession session,
                  IndexEntity[] entities)
                  throws CompassException
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.

Parameters:
session - The compass session to index the data with
entities - A list of entities to perform the indexing by
Throws:
CompassException


Copyright (c) 2004-2009 The Compass Project.