view src/main/java/nl/cwi/monetdb/mcl/responses/IIncompleteResponse.java @ 67:87ba760038b6 embedded

More cleanup. About to start the tuple conversions.
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Tue, 06 Dec 2016 18:13:54 +0100 (2016-12-06)
parents 7307caacc2d5
children 86967be24645
line wrap: on
line source
package nl.cwi.monetdb.mcl.responses;

import nl.cwi.monetdb.mcl.protocol.MCLParseException;
import nl.cwi.monetdb.mcl.protocol.ServerResponses;

import java.sql.SQLException;

/**
 * Created by ferreira on 12/5/16.
 */
public interface IIncompleteResponse extends IResponse {
    /**
     * Returns whether this Response expects more lines to be added
     * to it.
     *
     * @return true if a next line should be added, false otherwise
     */
    boolean wantsMore();

    /**
     * Indicates that no more header lines will be added to this
     * Response implementation.
     *
     * @throws SQLException if the contents of the Response is not
     *         consistent or sufficient.
     */
    void complete() throws SQLException;

    void addLine(ServerResponses response, Object line) throws MCLParseException;
}