net.quasardb.qdb.ts.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jni Show documentation
Show all versions of jni Show documentation
API for the JNI components of the QuasarDB API for Java. Should not be included directly.
package net.quasardb.qdb.ts;
import java.util.Arrays;
import java.util.stream.Stream;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
/**
* The result of a Query
*/
public final class Result implements Serializable {
public String[] columns;
public Row[] rows;
/**
* Create a new result from result tables.
*/
public Result(String[] columns, Row[] rows) {
this.columns = columns;
this.rows = rows;
}
/**
* Access to a String representation of this Result.
*/
public String toString() {
return "Result (columns: " + Arrays.toString(this.columns) + ", rows: " + Arrays.toString(this.rows) + ")";
}
/**
* Provides stream-based access.
*/
public Stream stream() {
return Arrays.stream(this.rows);
}
}