- All Known Implementing Classes:
RowSetReaderCSV
,RowSetReaderJSON_V1
,RowSetReaderJSONStreaming
,RowSetReaderNone
,RowSetReaderProtobuf
,RowSetReaderThrift
,RowSetReaderTSV
,RowSetReaderXML
public interface RowSetReader
-
Method Summary
Modifier and TypeMethodDescriptionstatic RowSetReader
createReader
(Lang lang) Convenience operation - create aRowSetReader
forLang
or return null.default RowSet
read
(InputStream in, Context context) Read from anInputStream
and produce aRowSet
.default RowSet
Usingread(InputStream, Context)
is preferred.readAny
(InputStream in, Context context) Read from anInputStream
and produce aQueryExecResult
.
-
Method Details
-
read
Read from anInputStream
and produce aRowSet
. Note that return row set may stream and so the input stream may be read while theRowSet
is used. SeeRowSet.materialize()
for a RowSet that is detached from theInputStream
.- Parameters:
in
- InputStream to read from.context
-- Returns:
- RowSet
-
readAny
Read from anInputStream
and produce aQueryExecResult
. Note that return result may stream and so the input stream may be read while theRowSet
is used. Seeread(InputStream, Context)
for more details- Parameters:
in
- InputStream to read from.context
-- Returns:
- QueryExecResult
-
read
Usingread(InputStream, Context)
is preferred.Not all formats support reading from a
java.io.Reader
.Read from an
Reader
and produce aRowSet
. Note that return result may stream and so the reader may be read while the RowSet is used. SeeRowSet.materialize()
for a RowSet that is detached from theInputStream
.- Parameters:
in
- Readercontext
-- Returns:
- RowSet
-
createReader
Convenience operation - create aRowSetReader
forLang
or return null.
-