Class CombinedBits

java.lang.Object
org.elasticsearch.lucene.util.CombinedBits
All Implemented Interfaces:
org.apache.lucene.util.Bits

public final class CombinedBits extends Object implements org.apache.lucene.util.Bits
A Bits implementation that combines two Bits instances by and-ing them to provide a single merged view.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.lucene.util.Bits

    org.apache.lucene.util.Bits.MatchAllBits, org.apache.lucene.util.Bits.MatchNoBits
  • Field Summary

    Fields inherited from interface org.apache.lucene.util.Bits

    EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CombinedBits(org.apache.lucene.util.Bits first, org.apache.lucene.util.Bits second)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyMask(org.apache.lucene.util.FixedBitSet bitSet, int offset)
     
    boolean
    get(int index)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CombinedBits

      public CombinedBits(org.apache.lucene.util.Bits first, org.apache.lucene.util.Bits second)
  • Method Details

    • get

      public boolean get(int index)
      Specified by:
      get in interface org.apache.lucene.util.Bits
    • length

      public int length()
      Specified by:
      length in interface org.apache.lucene.util.Bits
    • applyMask

      public void applyMask(org.apache.lucene.util.FixedBitSet bitSet, int offset)
      Specified by:
      applyMask in interface org.apache.lucene.util.Bits