Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(51)  |  Call(17)  |  Derive(0)  |  Import(34)
union(o1, o2) -- compute the union of o1 and o2

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/BooleanIndex/BooleanIndex.py   Products.ZCatalog(Download)
from App.special_dtml import DTMLFile
from BTrees.IIBTree import IIBTree, IITreeSet, IISet
from BTrees.IIBTree import union, intersection, difference
import BTrees.Length
from ZODB.POSException import ConflictError
                # Otherwise, remove from resultset or _unindex
                if resultset is None:
                    return (union(difference(self._unindex, index), IISet([])),
                            (self.id, ))
                else:

src/s/i/silva.app.news-3.0.4/src/silva/app/news/indexing.py   silva.app.news(Download)
from Products.PluginIndexes.common.util import parseIndexRequest
from Products.PluginIndexes.common import safe_callable
from BTrees.IIBTree import IISet, multiunion, difference, intersection, union
from BTrees.OIBTree import OIBTree
import BTrees
        start_before_end_after = intersection(start, end)
 
        result = union(start_into, end_into)
        result = union(result, start_before_end_after)
 

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/extendedpathindex.py   experimental.catalogqueryplan(Download)
from BTrees.IIBTree import union, multiunion
from BTrees.IIBTree import intersection
from Products.PluginIndexes.common.util import parseIndexRequest
from BTrees.IIBTree import IISet
 
 
        if navtree and i + level >= navtree_start:
            depthset = union(depthset, intersection(pathset,
                self._index.get(None, {}).get(i + level)))
 

src/p/r/Products.AdvancedQuery-3.0.3/Products/AdvancedQuery/AdvancedQuery.py   Products.AdvancedQuery(Download)
 
from DateTime import DateTime
from BTrees.IIBTree import IISet, IITreeSet, \
     difference, union, multiunion, intersection
from BTrees.OOBTree import OOBTree
    if len(sqs) >= 4: return multiunion([q._eval(context) for q in sqs])
    r = None
    for q in sqs: r = union(r,q._eval(context))
    return r
 

src/p/r/Products.BooleanIndex-1.0.2/Products/BooleanIndex/BooleanIndex.py   Products.BooleanIndex(Download)
 
from BTrees.IIBTree import IIBTree, IITreeSet, IISet
from BTrees.IIBTree import union, intersection, difference
import BTrees.Length
 
                # Otherwise, remove from res or _unindex
                if res is None:
                    return union(difference(self._unindex, index), IISet([])), (self.id,)
                else:
                    return difference(res, index), (self.id,)

src/p/r/Products.ExtendedPathIndex-3.1/Products/ExtendedPathIndex/ExtendedPathIndex.py   Products.ExtendedPathIndex(Download)
import logging
 
from App.special_dtml import DTMLFile
from BTrees.IIBTree import IISet, IITreeSet, intersection, union, multiunion
from BTrees.OOBTree import OOBTree
 
            if navtree and i + level >= navtree_start:
                depthset = union(depthset, intersection(pathset,
                    self._index.get(None, {}).get(i + level)))
 

src/u/n/unimr.compositeindex-0.1rc1-r84937/unimr/compositeindex/CompositeIndex.py   unimr.compositeindex(Download)
from time import time
 
from BTrees.IIBTree import IIBTree, IITreeSet, IISet, union, intersection, difference
from BTrees.OOBTree import OOBTree
from BTrees.IOBTree import IOBTree
                if isinstance(set, tuple):
                    set = IISet((set,))
                r = union(r, set)
        else: # not a range search
            for key in record.keys:
                elif isinstance(set, int):
                    set = IISet((set,))
                r = union(r, set)
 
        if isinstance(r, int):

src/z/o/zopyx.txng3.core-3.6.1.1/zopyx/txng3/core/resultset.py   zopyx.txng3.core(Download)
 
from zope.interface import implements
from BTrees.IIBTree import IIBucket, intersection, union, difference
 
from docidlist import DocidList
    words = WordList()
    for set in sets:
        docids = union(docids, set.docids)
        words.extend(set.words)
    return ResultSet(docids, words)

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/languageindex.py   experimental.catalogqueryplan(Download)
from BTrees.IIBTree import IISet
from BTrees.IIBTree import union as ii_union
from BTrees.OOBTree import OOSet
from BTrees.OOBTree import union as oo_union
from Products.PluginIndexes.common.util import parseIndexRequest
    for language in record.keys:
        rows = self._search(language, fallback, res=res)
        result = ii_union(result, rows)
 
    return (result or IISet()), ('Language',)

src/z/o/zopyx.txng3.core-3.6.1.1/zopyx/txng3/core/storage.py   zopyx.txng3.core(Download)
from compatible import Persistent
from BTrees.IOBTree import IOBTree
from BTrees.IIBTree import IITreeSet, IIBTree, union, IISet, difference
import BTrees.Length 
 
                continue
 
            r = union(r, docids)
        return r
 

  1 | 2 | 3  Next