com.sun.mdm.index.matching.impl
Class PickAllBlocksAtOnce

java.lang.Object
  extended bycom.sun.mdm.index.matching.impl.PickAllBlocksAtOnce
All Implemented Interfaces:
BlockPicker

public class PickAllBlocksAtOnce
extends java.lang.Object
implements BlockPicker

A user extensible component to pick the next block definition(s) to use for the next matching pass. This simple implementation picks the all remaining block definitions from the remaining block IDs list.


Constructor Summary
PickAllBlocksAtOnce()
          Creates new SerialBlockPicker
 
Method Summary
 java.lang.String[] pickBlock(SystemObject inObject, EOSearchOptions searchOptions, java.util.ArrayList previousBlockIDs, java.util.ArrayList remainingBlockIDs)
          Pick all the remaining, applicable defined blocks at once to be executed using UNION in the next pass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickAllBlocksAtOnce

public PickAllBlocksAtOnce()
Creates new SerialBlockPicker

Method Detail

pickBlock

public java.lang.String[] pickBlock(SystemObject inObject,
                                    EOSearchOptions searchOptions,
                                    java.util.ArrayList previousBlockIDs,
                                    java.util.ArrayList remainingBlockIDs)
                             throws NoBlockApplicableException
Pick all the remaining, applicable defined blocks at once to be executed using UNION in the next pass.

Specified by:
pickBlock in interface BlockPicker
Parameters:
inObject - the SystemObject to match
searchOptions - the options used for the search. From this it is possible to tell whether it is a weighted search or a normal match.
previousBlockIDs - the list of block IDs that have already been used in previous match passes for matching this SystemObject
remainingBlockIDs - a list of remaining block IDs that have not yet been used in previous match passes for matching this SystemObject
Returns:
the blockID to use for the next match pass
Throws:
NoBlockApplicableException - if no block IDs remain that are applicable This signals the MatchEngineController that matching for this SystemObject is complete


Sun Microsystems, Inc.