- All Known Implementing Classes:
RowSetReaderCSV,RowSetReaderJSON_V1,RowSetReaderJSONStreaming,RowSetReaderNone,RowSetReaderProtobuf,RowSetReaderThrift,RowSetReaderTSV,RowSetReaderXML
public interface RowSetReader
-
Method Summary
Modifier and TypeMethodDescriptionstatic RowSetReadercreateReader(Lang lang) Convenience operation - create aRowSetReaderforLangor return null.default RowSetread(InputStream in, Context context) Read from anInputStreamand produce aRowSet.default RowSetUsingread(InputStream, Context)is preferred.readAny(InputStream in, Context context) Read from anInputStreamand produce aQueryExecResult.
-
Method Details
-
read
Read from anInputStreamand produce aRowSet. Note that return row set may stream and so the input stream may be read while theRowSetis used. SeeRowSet.materialize()for a RowSet that is detached from theInputStream.- Parameters:
in- InputStream to read from.context-- Returns:
- RowSet
-
readAny
Read from anInputStreamand produce aQueryExecResult. Note that return result may stream and so the input stream may be read while theRowSetis 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
Readerand 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 aRowSetReaderforLangor return null.
-