Interface RowSetReader

All Known Implementing Classes:
RowSetReaderCSV, RowSetReaderJSON_V1, RowSetReaderJSONStreaming, RowSetReaderNone, RowSetReaderProtobuf, RowSetReaderThrift, RowSetReaderTSV, RowSetReaderXML

public interface RowSetReader
  • Method Details

    • read

      default RowSet read(InputStream in, Context context)
      Read from an InputStream and produce a RowSet. Note that return row set may stream and so the input stream may be read while the RowSet is used. See RowSet.materialize() for a RowSet that is detached from the InputStream.
      Parameters:
      in - InputStream to read from.
      context -
      Returns:
      RowSet
    • readAny

      QueryExecResult readAny(InputStream in, Context context)
      Read from an InputStream and produce a QueryExecResult. Note that return result may stream and so the input stream may be read while the RowSet is used. See read(InputStream, Context) for more details
      Parameters:
      in - InputStream to read from.
      context -
      Returns:
      QueryExecResult
    • read

      default RowSet read(Reader in, Context context)
      Using read(InputStream, Context) is preferred.

      Not all formats support reading from a java.io.Reader.

      Read from an Reader and produce a RowSet. Note that return result may stream and so the reader may be read while the RowSet is used. See RowSet.materialize() for a RowSet that is detached from the InputStream.

      Parameters:
      in - Reader
      context -
      Returns:
      RowSet
    • createReader

      static RowSetReader createReader(Lang lang)
      Convenience operation - create a RowSetReader for Lang or return null.