view src/main/java/nl/cwi/monetdb/embedded/tables/IMonetDBTableBaseIterator.java @ 51:c592d8a72627 embedded

More defensive approach for tables. Only the table name and schema are cached.
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Wed, 16 Nov 2016 21:21:26 +0100 (2016-11-16)
parents dfea8468cd1a
children 2053a9fc56ca
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 starting from 1. If a lower 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 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();
}