view src/main/java/nl/cwi/monetdb/embedded/tables/IMonetDBTableBaseIterator.java @ 42:dfea8468cd1a embedded

Finished Java code for CRUD operations on tables and the documentation.
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Tue, 08 Nov 2016 14:57:26 +0100 (2016-11-08)
parents 3a19ebf83af6
children c592d8a72627
line wrap: on
line source
package nl.cwi.monetdb.embedded.tables;

/**
 * The base interface for iterating a MonetDB Table. The use can specify which rows to iterate in this interface.
 *
 * @author <a href="mailto:pedro.ferreira@monetdbsolutions.com">Pedro Ferreira</a>
 */
public interface IMonetDBTableBaseIterator {

    /**
     * Specify the first row in the table to iterate. If a negative number is provided, then the iteration
     * will start on the first row.
     *
     * @return The first row in the table to iterate
     */
    int getFirstRowToIterate();

    /**
     * Specify the last row in the table to iterate. If a negative number or a number larger than the number of rows
     * is provided, then the iteration will end on the last row of the table.
     *
     * @return The last row in the table to iterate
     */
    int getLastRowToIterate();
}