public final class AggregationDistinctQueryMetaData extends Object
| Constructor and Description |
|---|
AggregationDistinctQueryMetaData(Collection<org.apache.shardingsphere.core.parse.old.parser.context.selectitem.AggregationDistinctSelectItem> aggregationDistinctSelectItems,
com.google.common.collect.Multimap<String,Integer> columnLabelAndIndexMap) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAggregationDistinctColumnIndex(int derivedSumIndex)
Get aggregation distinct column index.
|
int |
getAggregationDistinctColumnIndex(String distinctColumnLabel)
Get aggregation distinct column index.
|
String |
getAggregationDistinctColumnLabel(int distinctColumnIndex)
Get aggregation distinct column label.
|
org.apache.shardingsphere.core.constant.AggregationType |
getAggregationType(int distinctColumnIndex)
Get aggregation type.
|
boolean |
isAggregationDistinctColumnIndex(int columnIndex)
Is aggregation distinct column index.
|
boolean |
isAggregationDistinctColumnLabel(String columnLabel)
Is aggregation distinct column label.
|
boolean |
isDerivedCountColumnIndex(int columnIndex)
Is derived count column index.
|
boolean |
isDerivedSumColumnIndex(int columnIndex)
Is derived sum column index.
|
public AggregationDistinctQueryMetaData(Collection<org.apache.shardingsphere.core.parse.old.parser.context.selectitem.AggregationDistinctSelectItem> aggregationDistinctSelectItems, com.google.common.collect.Multimap<String,Integer> columnLabelAndIndexMap)
public boolean isAggregationDistinctColumnIndex(int columnIndex)
columnIndex - column indexpublic boolean isAggregationDistinctColumnLabel(String columnLabel)
columnLabel - column labelpublic org.apache.shardingsphere.core.constant.AggregationType getAggregationType(int distinctColumnIndex)
distinctColumnIndex - distinct column indexpublic boolean isDerivedCountColumnIndex(int columnIndex)
columnIndex - column indexpublic boolean isDerivedSumColumnIndex(int columnIndex)
columnIndex - column indexpublic int getAggregationDistinctColumnIndex(int derivedSumIndex)
derivedSumIndex - derived sum indexpublic int getAggregationDistinctColumnIndex(String distinctColumnLabel)
distinctColumnLabel - aggregation distinct column labelpublic String getAggregationDistinctColumnLabel(int distinctColumnIndex)
distinctColumnIndex - aggregation distinct column indexCopyright © 2019 The Apache Software Foundation. All rights reserved.