Class TableReader
java.lang.Object
org.gridgain.internal.sql.copy.table.TableReader
- All Implemented Interfaces:
AutoCloseable,Reader
A reader that reads data from ignite table.
-
Constructor Summary
ConstructorsConstructorDescriptionTableReader(org.apache.ignite.internal.table.distributed.TableManager mgr, org.apache.ignite.internal.sql.engine.prepare.copy.CopyLocationTable location) Constructor. -
Method Summary
-
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:ReaderReturnstrueif the reader has more rows to read. -
next
Description copied from interface:ReaderReturns the next row of data. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
columns
Description copied from interface:ReaderReturns 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.
-