Package org.apache.shardingsphere.infra.executor.sql.execute.result.query.impl.driver.jdbc.type.stream
Class JDBCStreamQueryResult
java.lang.Object
org.apache.shardingsphere.infra.executor.sql.execute.result.query.type.stream.AbstractStreamQueryResult
org.apache.shardingsphere.infra.executor.sql.execute.result.query.impl.driver.jdbc.type.stream.JDBCStreamQueryResult
- All Implemented Interfaces:
ExecuteResult,QueryResult
JDBC query result for stream loading.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close.getCalendarValue(int columnIndex, Class<?> type, Calendar calendar) Get calendar value.getInputStream(int columnIndex, String type) Get input stream.Get data value.booleannext()Iterate next data.booleanwasNull()Judge result set is null or not.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.infra.executor.sql.execute.result.query.QueryResult
getMetaData
-
Constructor Details
-
JDBCStreamQueryResult
- Throws:
SQLException
-
-
Method Details
-
next
Description copied from interface:QueryResultIterate next data.- Returns:
- has next data
- Throws:
SQLException- SQL exception
-
getValue
Description copied from interface:QueryResultGet data value.- Parameters:
columnIndex- column indextype- class type of data value- Returns:
- data value
- Throws:
SQLException- SQL exception
-
getCalendarValue
public Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar) throws SQLException Description copied from interface:QueryResultGet calendar value.- Parameters:
columnIndex- column indextype- class type of data valuecalendar- calendar- Returns:
- calendar value
- Throws:
SQLException- SQL exception
-
getInputStream
Description copied from interface:QueryResultGet input stream.- Parameters:
columnIndex- column indextype- class type of data value- Returns:
- input stream
- Throws:
SQLException- SQL exception
-
wasNull
Description copied from interface:QueryResultJudge result set is null or not.- Returns:
- result set is null or not
- Throws:
SQLException- SQL exception
-
close
Description copied from interface:QueryResultClose.- Throws:
SQLException- SQL exception
-