Class OpenBitSetDISI

  • All Implemented Interfaces:
    java.lang.Cloneable, Bits

    public class OpenBitSetDISI
    extends OpenBitSet
    OpenBitSet with added methods to bulk-update the bits from a DocIdSetIterator.
    • Constructor Detail

      • OpenBitSetDISI

        public OpenBitSetDISI​(DocIdSetIterator disi,
                              int maxSize)
                       throws java.io.IOException
        Construct an OpenBitSetDISI with its bits set from the doc ids of the given DocIdSetIterator. Also give a maximum size one larger than the largest doc id for which a bit may ever be set on this OpenBitSetDISI.
        Throws:
        java.io.IOException
      • OpenBitSetDISI

        public OpenBitSetDISI​(int maxSize)
        Construct an OpenBitSetDISI with no bits set, and a given maximum size one larger than the largest doc id for which a bit may ever be set on this OpenBitSetDISI.
    • Method Detail

      • inPlaceOr

        public void inPlaceOr​(DocIdSetIterator disi)
                       throws java.io.IOException
        Perform an inplace OR with the doc ids from a given DocIdSetIterator, setting the bit for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.
        Throws:
        java.io.IOException
      • inPlaceAnd

        public void inPlaceAnd​(DocIdSetIterator disi)
                        throws java.io.IOException
        Perform an inplace AND with the doc ids from a given DocIdSetIterator, leaving only the bits set for which the doc ids are in common. These doc ids should be smaller than the maximum size passed to the constructor.
        Throws:
        java.io.IOException
      • inPlaceNot

        public void inPlaceNot​(DocIdSetIterator disi)
                        throws java.io.IOException
        Perform an inplace NOT with the doc ids from a given DocIdSetIterator, clearing all the bits for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.
        Throws:
        java.io.IOException
      • inPlaceXor

        public void inPlaceXor​(DocIdSetIterator disi)
                        throws java.io.IOException
        Perform an inplace XOR with the doc ids from a given DocIdSetIterator, flipping all the bits for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.
        Throws:
        java.io.IOException