T - the type for reading a row from the setpublic interface RowSet<T> extends Iterable<T>, Closeable
A Row Set represents a set of rows produced by a plan and read from the database.
The parameterized type will be RowRecord when reading each row as a map and can be a JSON read handle when reading each row as a JSON document, or an XML read handle when reading each row as a XML document.
The parameterized type can also be a JSON or XML IO representation with a registered handle such as a Jackson JsonNode or an XML DOM Document.
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumnNames()
Identifies the columns in the row set.
|
String[] |
getColumnTypes()
Identifies the data types of the columns.
|
Stream<T> |
stream()
Streams each row in the set of rows.
|
forEach, iterator, spliteratorString[] getColumnNames()
Identifies the columns in the row set.
String[] getColumnTypes()
Identifies the data types of the columns.
The array lists the data types only if the rows were requested with a RowManager configured by calling the setDatatypeStyle() method with RowSetPart.HEADER.
Note that setting the data type style to HEADER does not cast the values of the column. The actual data type of the column values may be different from the header data type if the column values are inconsistent.
Copyright © 2013-2017 MarkLogic Corporation.