Interface Reader

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
CsvReader, IcebergParquetReader, IcebergReader, SelectReader, TableReader

public interface Reader extends AutoCloseable
Generic interface for reading data from a source.
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<org.apache.ignite.internal.schema.Column>
    Returns metadata of the fields returned by the query.
    boolean
    Returns true if the reader has more rows to read.
    List<?>
    Returns the next row of data.

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • hasNext

      boolean hasNext()
      Returns true if the reader has more rows to read.
      Returns:
      true if there is more data to read.
    • next

      List<?> next()
      Returns the next row of data.
    • columns

      default List<org.apache.ignite.internal.schema.Column> columns()
      Returns metadata of the fields returned by the query. For now, it makes sense only for TableReader because writers (except TableWriter which doesn't infer schema) use this field metadata to create table schema.