org.LexGrid.LexBIG.Impl.codednodeset
Class SingleLuceneIndexCodedNodeSet

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.CodedNodeSetImpl
      extended by org.LexGrid.LexBIG.Impl.codednodeset.SingleLuceneIndexCodedNodeSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, CodedNodeSet
Direct Known Subclasses:
LuceneOnlyToNodeListCodedNodeSet

public class SingleLuceneIndexCodedNodeSet
extends CodedNodeSetImpl

Implementation of the CodedNodeSet Interface.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust, Konrad Rokicki, Jesse Erdmann, Deepak Sharma
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.LexGrid.LexBIG.LexBIGService.CodedNodeSet
CodedNodeSet.ActiveOption, CodedNodeSet.AnonymousOption, CodedNodeSet.PropertyType, CodedNodeSet.SearchDesignationOption
 
Field Summary
 
Fields inherited from class org.LexGrid.LexBIG.Impl.CodedNodeSetImpl
codeHolderFactory, codesToInclude_, pendingOperations_
 
Constructor Summary
SingleLuceneIndexCodedNodeSet()
           
SingleLuceneIndexCodedNodeSet(java.lang.String codingScheme, CodingSchemeVersionOrTag tagOrVersion, java.lang.Boolean activeOnly, LocalNameList types)
           
 
Method Summary
 CodedNodeSet difference(CodedNodeSet codes)
          Return a coded node set that represents the set of nodes in this set that are not included by the given set.
protected  void doDifference(java.lang.String internalCodeSystemName, java.lang.String internalVersionString, Difference difference)
           
protected  void doIntersect(java.lang.String internalCodeSystemName, java.lang.String internalVersionString, Intersect intersect)
           
protected  void doUnion(java.lang.String internalCodeSystemName, java.lang.String internalVersionString, Union union)
           
 CodedNodeSet intersect(CodedNodeSet codes)
          Return a coded node set that represents the set of nodes this set and the provided node set have in common.
 CodedNodeSet union(CodedNodeSet codes)
          Return the set union of all of the codes in the containing or the referenced set
 
Methods inherited from class org.LexGrid.LexBIG.Impl.CodedNodeSetImpl
clearToNodeListCodes, clone, getCodeHolder, getCodeHolderFactory, getCodingSchemeReferences, getFilters, getInternalCodeSystemName, getInternalVersionString, getLogger, getQueries, getResolvedConceptReferencesIterator, getResultComparator, getToNodeListCodes, isCodeInSet, isShouldCodingSchemeSpecificRestriction, optimizePendingOpsOrder, resolve, resolve, resolve, resolveToList, resolveToList, resolveToList, restrictToAnonymous, restrictToCodes, restrictToEntityTypes, restrictToMatchingDesignations, restrictToMatchingDesignations, restrictToMatchingProperties, restrictToMatchingProperties, restrictToProperties, restrictToProperties, restrictToStatus, runPendingOps, setCodeHolderFactory, setFilters, setQueries, setShouldCodingSchemeSpecificRestriction, setToNodeListCodes, toBruteForceMode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleLuceneIndexCodedNodeSet

public SingleLuceneIndexCodedNodeSet()

SingleLuceneIndexCodedNodeSet

public SingleLuceneIndexCodedNodeSet(java.lang.String codingScheme,
                                     CodingSchemeVersionOrTag tagOrVersion,
                                     java.lang.Boolean activeOnly,
                                     LocalNameList types)
                              throws LBInvocationException,
                                     LBParameterException,
                                     LBResourceUnavailableException
Throws:
LBInvocationException
LBParameterException
LBResourceUnavailableException
Method Detail

union

public CodedNodeSet union(CodedNodeSet codes)
                   throws LBInvocationException,
                          LBParameterException
Description copied from interface: CodedNodeSet
Return the set union of all of the codes in the containing or the referenced set

Specified by:
union in interface CodedNodeSet
Overrides:
union in class CodedNodeSetImpl
Parameters:
codes - Codes to add to the union
Returns:
A new CodedNodeSet representing the merged result.
Throws:
LBInvocationException
LBParameterException
See Also:
CodedNodeSet.union(org.LexGrid.LexBIG.LexBIGService.CodedNodeSet)

intersect

public CodedNodeSet intersect(CodedNodeSet codes)
                       throws LBInvocationException,
                              LBParameterException
Description copied from interface: CodedNodeSet
Return a coded node set that represents the set of nodes this set and the provided node set have in common.

Specified by:
intersect in interface CodedNodeSet
Overrides:
intersect in class CodedNodeSetImpl
Parameters:
codes - Set of codes to intersect.
Returns:
A new CodedNodeSet representing the intersection result.
Throws:
LBInvocationException
LBParameterException
See Also:
CodedNodeSet.intersect(org.LexGrid.LexBIG.LexBIGService.CodedNodeSet)

difference

public CodedNodeSet difference(CodedNodeSet codes)
                        throws LBInvocationException,
                               LBParameterException
Description copied from interface: CodedNodeSet
Return a coded node set that represents the set of nodes in this set that are not included by the given set.

Specified by:
difference in interface CodedNodeSet
Overrides:
difference in class CodedNodeSetImpl
Parameters:
codes - List of codes to remove from the surrounding set.
Returns:
A new CodedNodeSet representing the difference.
Throws:
LBInvocationException
LBParameterException
See Also:
CodedNodeSet.difference(org.LexGrid.LexBIG.LexBIGService.CodedNodeSet)

doUnion

protected void doUnion(java.lang.String internalCodeSystemName,
                       java.lang.String internalVersionString,
                       Union union)
                throws LBException
Overrides:
doUnion in class CodedNodeSetImpl
Throws:
LBException

doDifference

protected void doDifference(java.lang.String internalCodeSystemName,
                            java.lang.String internalVersionString,
                            Difference difference)
                     throws LBException
Overrides:
doDifference in class CodedNodeSetImpl
Throws:
LBException

doIntersect

protected void doIntersect(java.lang.String internalCodeSystemName,
                           java.lang.String internalVersionString,
                           Intersect intersect)
                    throws LBException
Overrides:
doIntersect in class CodedNodeSetImpl
Throws:
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.