org.compass.gps.device.support.parallel
Class SubIndexIndexEntitiesPartitioner
java.lang.Object
org.compass.gps.device.support.parallel.SubIndexIndexEntitiesPartitioner
- All Implemented Interfaces:
- IndexEntitiesPartitioner
public class SubIndexIndexEntitiesPartitioner
- extends Object
- implements IndexEntitiesPartitioner
Partitions a list of IndexEntity into
several groups of lists of index entities based on their sub indexes. Index entities
that share the same sub index will be grouped into the same group since parallel indexing
is best performed based on the sub index as Compass perfoms sub index level locking during
indexing.
- Author:
- kimchy
|
Method Summary |
IndexEntity[][] |
partition(IndexEntity[] entities)
Partitions a list of index entities into several groups of lists of index entities
that can be indexed in parallel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubIndexIndexEntitiesPartitioner
public SubIndexIndexEntitiesPartitioner()
partition
public IndexEntity[][] partition(IndexEntity[] entities)
throws CompassGpsException
- Description copied from interface:
IndexEntitiesPartitioner
- Partitions a list of index entities into several groups of lists of index entities
that can be indexed in parallel.
- Specified by:
partition in interface IndexEntitiesPartitioner
- Parameters:
entities - The index entities to partition
- Returns:
- Groups of list of entities that can be indexed in
- Throws:
CompassGpsException
Copyright (c) 2004-2008 The Compass Project.