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

io.deephaven.engine.rowset.impl.rsp.container.BatchIterator Maven / Gradle / Ivy

package io.deephaven.engine.rowset.impl.rsp.container;

public interface BatchIterator {

    /**
     * Writes the next batch of integers onto the buffer, and returns how many were written. Aims to fill the buffer.
     *
     * @param buffer - the target to write onto
     * @return how many values were written during the call.
     */
    int nextBatch(int[] buffer);

    /**
     * Returns true is there are more values to get.
     *
     * @return whether the iterator is exhaused or not.
     */
    boolean hasNext();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy