类 MappeableRunContainer

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

public final class MappeableRunContainer extends MappeableContainer implements Cloneable
This container takes the form of runs of consecutive values (effectively, run-length encoding). Uses a CharBuffer to store data, unlike org.bitlap.roaringbitmap.RunContainer. Otherwise similar. Adding and removing content from this container might make it wasteful so regular calls to "runOptimize" might be warranted.
另请参阅:
  • 字段详细资料

    • valueslength

      protected CharBuffer valueslength
    • nbrruns

      protected int nbrruns
  • 构造器详细资料

    • MappeableRunContainer

      public MappeableRunContainer()
      Create a container with default capacity
    • MappeableRunContainer

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

      protected MappeableRunContainer(MappeableArrayContainer arr, int nbrRuns)
    • MappeableRunContainer

      public MappeableRunContainer(int firstOfRun, int lastOfRun)
      Create an run container with a run of ones from firstOfRun to lastOfRun.
      参数:
      firstOfRun - first index
      lastOfRun - last index (range is exclusive)
    • MappeableRunContainer

      protected MappeableRunContainer(MappeableBitmapContainer bc, int nbrRuns)
    • MappeableRunContainer

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

      public MappeableRunContainer(CharBuffer array, int numRuns)
      Construct a new RunContainer backed by the provided CharBuffer. Note that if you modify the RunContainer a new CharBuffer may be produced.
      参数:
      array - CharBuffer where the data is stored
      numRuns - number of runs (each using 2 chars in the buffer)
  • 方法详细资料