Class Int64BitSet
  
  BitSet of fixed length (Lucene.Net.Util.Int64BitSet.numBits), backed by accessible (GetBits())
long[], accessed with a System.Int64 index. Use it only if you intend to store more
than 2.1B bits, otherwise you should use FixedBitSet.
NOTE: This was LongBitSet in Lucene
This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    Int64BitSet
   
  
    Inherited Members
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
   
  
  Assembly: Lucene.Net.dll
  Syntax
  
    [Serializable]
public sealed class Int64BitSet
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Int64BitSet(Int64)
  
  
  Declaration
  
    public Int64BitSet(long numBits)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | numBits |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Int64BitSet(Int64[], Int64)
  
  
  Declaration
  
    public Int64BitSet(long[] storedBits, long numBits)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64[] | storedBits |  | 
      
        | System.Int64 | numBits |  | 
    
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Length
  Returns the number of bits stored in this bitset. 
Declaration
  
    public long Length { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Int64 |  | 
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  And(Int64BitSet)
  
  
  Declaration
  
    public void And(Int64BitSet other)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  AndNot(Int64BitSet)
  this = this AND NOT other 
Declaration
  
    public void AndNot(Int64BitSet other)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Bits2words(Int64)
  Returns the number of 64 bit words it would take to hold numBits. 
Declaration
  
    public static int Bits2words(long numBits)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | numBits |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32 |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Cardinality()
  Returns number of set bits.  NOTE: this visits every
long in the backing bits array, and the result is not
internally cached!
Declaration
  
    public long Cardinality()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int64 |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Clear(Int64)
  
  
  Declaration
  
    public void Clear(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Clear(Int64, Int64)
  
  
  Declaration
  
    public void Clear(long startIndex, long endIndex)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | startIndex | Lower index  | 
      
        | System.Int64 | endIndex | One-past the last bit to clear  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Clone()
  
  
  Declaration
  
    public Int64BitSet Clone()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  EnsureCapacity(Int64BitSet, Int64)
  If the given Int64BitSet is large enough to hold
numBits, returns the given bits, otherwise returns a new
Int64BitSet which can hold the requested number of bits.
NOTE: the returned bitset reuses the underlying long[] of
the given bits if possible. Also, reading Length on the
returned bits may return a value greater than numBits.
Declaration
  
    public static Int64BitSet EnsureCapacity(Int64BitSet bits, long numBits)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Int64BitSet | bits |  | 
      
        | System.Int64 | numBits |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(Object)
  Returns true if both sets have the same bits set 
Declaration
  
    public override bool Equals(object o)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | o |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  Overrides
  System.Object.Equals(System.Object)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Flip(Int64, Int64)
  
  
  Declaration
  
    public void Flip(long startIndex, long endIndex)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | startIndex | Lower index  | 
      
        | System.Int64 | endIndex | One-past the last bit to flip  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Get(Int64)
  
  
  Declaration
  
    public bool Get(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetAndClear(Int64)
  
  
  Declaration
  
    public bool GetAndClear(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetAndSet(Int64)
  
  
  Declaration
  
    public bool GetAndSet(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetBits()
  
  
  Declaration
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int64[] |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32 |  | 
    
  
  Overrides
  System.Object.GetHashCode()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Intersects(Int64BitSet)
  Returns true if the sets have any elements in common 
Declaration
  
    public bool Intersects(Int64BitSet other)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  NextSetBit(Int64)
  Returns the index of the first set bit starting at the index specified.
-1 is returned if there are no more set bits.
Declaration
  
    public long NextSetBit(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int64 |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Or(Int64BitSet)
  
  
  Declaration
  
    public void Or(Int64BitSet other)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  PrevSetBit(Int64)
  Returns the index of the last set bit before or on the index specified.
-1 is returned if there are no more set bits.
Declaration
  
    public long PrevSetBit(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int64 |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Set(Int64)
  
  
  Declaration
  
    public void Set(long index)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | index |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Set(Int64, Int64)
  
  
  Declaration
  
    public void Set(long startIndex, long endIndex)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int64 | startIndex | Lower index  | 
      
        | System.Int64 | endIndex | One-past the last bit to set  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Xor(Int64BitSet)
  
  
  Declaration
  
    public void Xor(Int64BitSet other)
   
  Parameters