Class TableReader

java.lang.Object
org.gridgain.internal.sql.copy.table.TableReader
All Implemented Interfaces:
AutoCloseable, Reader

public class TableReader extends Object implements Reader
A reader that reads data from ignite table.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TableReader(org.apache.ignite.internal.table.distributed.TableManager mgr, org.apache.ignite.internal.sql.engine.prepare.copy.CopyLocationTable location)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TableReader

      public TableReader(org.apache.ignite.internal.table.distributed.TableManager mgr, org.apache.ignite.internal.sql.engine.prepare.copy.CopyLocationTable location)
      Constructor.
  • Method Details

    • hasNext

      public boolean hasNext()
      Description copied from interface: Reader
      Returns true if the reader has more rows to read.
      Specified by:
      hasNext in interface Reader
      Returns:
      true if there is more data to read.
    • next

      public List<?> next()
      Description copied from interface: Reader
      Returns the next row of data.
      Specified by:
      next in interface Reader
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • columns

      public List<org.apache.ignite.internal.schema.Column> columns()
      Description copied from interface: Reader
      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.
      Specified by:
      columns in interface Reader