public class JdbcInputFormat extends Object implements Serializable
| 构造器和说明 |
|---|
JdbcInputFormat(JdbcSourceConfig config,
Map<TablePath,CatalogTable> tables) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes all resources used.
|
void |
closeInputFormat() |
SeaTunnelRow |
nextRecord()
Convert a row of data to seatunnelRow
|
void |
open(JdbcSourceSplit inputSplit)
Connects to the source database and executes the query
|
void |
openInputFormat() |
boolean |
reachedEnd()
Checks whether all data has been read.
|
public JdbcInputFormat(JdbcSourceConfig config, Map<TablePath,CatalogTable> tables)
public void openInputFormat()
public void closeInputFormat()
throws IOException
IOExceptionpublic void open(JdbcSourceSplit inputSplit) throws IOException
inputSplit - which is ignored if this InputFormat is executed as a non-parallel source,
a "hook" to the query parameters otherwise (using its parameterId)IOException - if there's an error during the execution of the querypublic void close()
throws IOException
IOException - Indicates that a resource could not be closed.public boolean reachedEnd()
public SeaTunnelRow nextRecord()
Copyright © 2024 The Apache Software Foundation. All rights reserved.