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

org.sagacity.sqltoy.callback.StreamResultHandler Maven / Gradle / Ivy

There is a newer version: 5.6.31.jre8
Show newest version
package org.sagacity.sqltoy.callback;

/**
 * @project sagacity-sqltoy
 * @description 定义基于流模式获取查询结果的反调
 * @author zhongxuchen
 * @version v1.0, Date:2022-7-23
 */
public interface StreamResultHandler {
	/**
	 * @TODO 开始
	 * @param columnsLabels 查询结果列标题
	 * @param columnsTypes  查询结果列对应的数据类型
	 */
	public default void start(String[] columnsLabels, String[] columnsTypes) {
	}

	/**
	 * @TODO 对行数据进行消费
	 * @param row
	 * @param rowIndex
	 */
	public void consume(Object row, int rowIndex);

	/**
	 * @TODO 流数据提取完成
	 */
	public default void end() {

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy