All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.roaringbitmap.art.Shuttle Maven / Gradle / Ivy

Go to download

Roaring bitmaps are compressed bitmaps (also called bitsets) which tend to outperform conventional compressed bitmaps such as WAH or Concise.

There is a newer version: 1.3.0
Show newest version
package org.roaringbitmap.art;

public interface Shuttle {

  /**
   * should be called firstly before calling other methods
   */
  public void initShuttle();

  /**
   * Call this instead of initShuttle, if the iterator should start from a bound
   * (upper/lower depending on direction)
   *
   * @param key the upper/lower bound to start from
   */
  public void initShuttleFrom(long key);

  /**
   *
   * @return true: has a LeafNode, false: has no LeafNode
   */
  public boolean moveToNextLeaf();

  /**
   * get the current LeafNode after calling the method moveToNextLeaf
   * @return the current visiting LeafNode
   */
  public LeafNode getCurrentLeafNode();

  /**
   * remove the current visiting LeafNode and its corresponding value container
   */
  public void remove();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy