T - type of rulepublic abstract class MemoryMergedResult<T extends org.apache.shardingsphere.infra.rule.ShardingSphereRule> extends Object implements MergedResult
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryMergedResult(T rule,
org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema,
SQLStatementContext<?> sqlStatementContext,
List<QueryResult> queryResults) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCalendarValue(int columnIndex,
Class<?> type,
Calendar calendar)
Get calendar value.
|
InputStream |
getInputStream(int columnIndex,
String type)
Get InputStream.
|
Object |
getValue(int columnIndex,
Class<?> type)
Get data value.
|
protected abstract List<MemoryQueryResultRow> |
init(T rule,
org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema,
SQLStatementContext<?> sqlStatementContext,
List<QueryResult> queryResults) |
boolean |
next()
Iterate next data.
|
boolean |
wasNull()
Judge ResultSet is null or not.
|
protected MemoryMergedResult(T rule, org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema, SQLStatementContext<?> sqlStatementContext, List<QueryResult> queryResults) throws SQLException
SQLExceptionprotected abstract List<MemoryQueryResultRow> init(T rule, org.apache.shardingsphere.infra.metadata.schema.ShardingSphereSchema schema, SQLStatementContext<?> sqlStatementContext, List<QueryResult> queryResults) throws SQLException
SQLExceptionpublic final boolean next()
MergedResultnext in interface MergedResultpublic final Object getValue(int columnIndex, Class<?> type) throws SQLException
MergedResultgetValue in interface MergedResultcolumnIndex - column indextype - class type of data valueSQLException - SQL exceptionpublic final Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar)
MergedResultgetCalendarValue in interface MergedResultcolumnIndex - column indextype - class type of data valuecalendar - calendarpublic final InputStream getInputStream(int columnIndex, String type) throws SQLException
MergedResultgetInputStream in interface MergedResultcolumnIndex - column indextype - class type of data valueSQLException - SQL exceptionpublic final boolean wasNull()
MergedResultwasNull in interface MergedResultCopyright © 2022 The Apache Software Foundation. All rights reserved.