org.roaringbitmap.ContainerBatchIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-core Show documentation
Show all versions of spark-core Show documentation
Shaded version of Apache Spark 2.x.x for Presto
The newest version!
package org.roaringbitmap;
public interface ContainerBatchIterator extends Cloneable {
/**
* Fills the buffer with values prefixed by the key,
* and returns how much of the buffer was used.
* @param key the prefix of the values
* @param buffer the buffer to write values onto
* @return how many values were written.
*/
int next(int key, int[] buffer);
/**
* Whether the underlying container is exhausted or not
* @return true if there is data remaining
*/
boolean hasNext();
/**
* Creates a copy of the iterator.
*
* @return a clone of the current iterator
*/
ContainerBatchIterator clone();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy