com.firefly.db.SQLResultSet Maven / Gradle / Ivy
package com.firefly.db;
import java.util.Iterator;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
/**
* @author Pengtao Qiu
*/
public interface SQLResultSet extends Row, Iterable {
boolean next();
void close();
@Override
default Iterator iterator() {
return new RowIterator(this);
}
default Stream stream() {
return StreamSupport.stream(this.spliterator(), false);
}
}