public final class AggregationDistinctQueryResult extends DistinctQueryResult
| Constructor and Description |
|---|
AggregationDistinctQueryResult(Collection<QueryResult> queryResults,
List<org.apache.shardingsphere.core.parse.old.parser.context.selectitem.AggregationDistinctSelectItem> aggregationDistinctSelectItems) |
| Modifier and Type | Method and Description |
|---|---|
List<DistinctQueryResult> |
divide()
Divide one distinct query result to multiple child ones.
|
Object |
getCalendarValue(int columnIndex,
Class<?> type,
Calendar calendar)
Get calendar value.
|
Object |
getCalendarValue(String columnLabel,
Class<?> type,
Calendar calendar)
Get calendar value.
|
int |
getColumnCount()
Get column count.
|
protected Integer |
getColumnIndex(String columnLabel) |
String |
getColumnLabel(int columnIndex)
Get column label.
|
InputStream |
getInputStream(int columnIndex,
String type)
Get InputStream.
|
InputStream |
getInputStream(String columnLabel,
String type)
Get InputStream.
|
Object |
getValue(int columnIndex,
Class<?> type)
Get data value.
|
Object |
getValue(String columnLabel,
Class<?> type)
Get data value.
|
boolean |
wasNull()
Judge ResultSet is null or not.
|
getInputStream, nextpublic AggregationDistinctQueryResult(Collection<QueryResult> queryResults, List<org.apache.shardingsphere.core.parse.old.parser.context.selectitem.AggregationDistinctSelectItem> aggregationDistinctSelectItems)
public List<DistinctQueryResult> divide()
divide in class DistinctQueryResultpublic Object getValue(int columnIndex, Class<?> type)
QueryResultgetValue in interface QueryResultgetValue in class DistinctQueryResultcolumnIndex - column indextype - class type of data valuepublic Object getValue(String columnLabel, Class<?> type)
QueryResultgetValue in interface QueryResultgetValue in class DistinctQueryResultcolumnLabel - column labeltype - class type of data valuepublic Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar)
QueryResultgetCalendarValue in interface QueryResultgetCalendarValue in class DistinctQueryResultcolumnIndex - column indextype - class type of data valuecalendar - calendarpublic Object getCalendarValue(String columnLabel, Class<?> type, Calendar calendar)
QueryResultgetCalendarValue in interface QueryResultgetCalendarValue in class DistinctQueryResultcolumnLabel - column labeltype - class type of data valuecalendar - calendarpublic InputStream getInputStream(int columnIndex, String type)
QueryResultgetInputStream in interface QueryResultgetInputStream in class DistinctQueryResultcolumnIndex - column indextype - class type of data valuepublic InputStream getInputStream(String columnLabel, String type)
QueryResultgetInputStream in interface QueryResultgetInputStream in class DistinctQueryResultcolumnLabel - column labeltype - class type of data valuepublic boolean wasNull()
QueryResultwasNull in interface QueryResultwasNull in class DistinctQueryResultpublic int getColumnCount()
QueryResultgetColumnCount in interface QueryResultgetColumnCount in class DistinctQueryResultpublic String getColumnLabel(int columnIndex) throws SQLException
QueryResultgetColumnLabel in interface QueryResultgetColumnLabel in class DistinctQueryResultcolumnIndex - column indexSQLException - SQL Exceptionprotected Integer getColumnIndex(String columnLabel)
getColumnIndex in class DistinctQueryResultCopyright © 2019 The Apache Software Foundation. All rights reserved.