类 MappeableArrayContainer

java.lang.Object
org.bitlap.roaringbitmap.buffer.MappeableContainer
org.bitlap.roaringbitmap.buffer.MappeableArrayContainer
所有已实现的接口:
Externalizable, Serializable, Cloneable, Iterable<Character>, WordStorage<MappeableContainer>

public final class MappeableArrayContainer extends MappeableContainer implements Cloneable
Simple container made of an array of 16-bit integers. Unlike org.roaringbitmap.ArrayContainer, this class uses a CharBuffer to store data.
另请参阅:
  • 字段详细资料

    • DEFAULT_MAX_SIZE

      protected static final int DEFAULT_MAX_SIZE
      另请参阅:
    • cardinality

      protected int cardinality
    • content

      protected CharBuffer content
  • 构造器详细资料

    • MappeableArrayContainer

      public MappeableArrayContainer()
      Create an array container with default capacity
    • MappeableArrayContainer

      public MappeableArrayContainer(ArrayContainer bc)
      Creates a new container from a non-mappeable one. This copies the data.
      参数:
      bc - the original container
    • MappeableArrayContainer

      public MappeableArrayContainer(int capacity)
      Create an array container with specified capacity
      参数:
      capacity - The capacity of the container
    • MappeableArrayContainer

      public MappeableArrayContainer(int firstOfRun, int lastOfRun)
      Create an array container with a run of ones from firstOfRun to lastOfRun, exclusive. Caller is responsible for making sure the range is small enough that ArrayContainer is appropriate.
      参数:
      firstOfRun - first index
      lastOfRun - last index (range is exclusive)
    • MappeableArrayContainer

      public MappeableArrayContainer(CharBuffer array, int cardinality)
      Construct a new ArrayContainer backed by the provided CharBuffer. Note that if you modify the ArrayContainer a new CharBuffer may be produced.
      参数:
      array - CharBuffer where the data is stored
      cardinality - cardinality (number of values stored)
  • 方法详细资料