public class QueryData extends Object
| Constructor and Description |
|---|
QueryData(boolean isExplain,
Set<String> projFields,
Set<String> tables,
Predicate pred,
Set<String> groupFields,
Set<AggregationFn> aggFn,
List<String> sortFields,
List<Integer> sortDirs)
Saves the information of a SQL query.
|
| Modifier and Type | Method and Description |
|---|---|
Set<AggregationFn> |
aggregationFn()
Returns the aggregation functions mentioned in the clause.
|
Set<String> |
groupFields()
Returns the field names mentioned in the group by clause.
|
boolean |
isExplain()
Returns true if the query is an explain statement.
|
Predicate |
pred()
Returns the predicate that describes which records should be in the
output table.
|
Set<String> |
projectFields()
Returns the fields mentioned in the select clause.
|
List<Integer> |
sortDirections()
Returns a list of sort directions to the sorting fields.
|
List<String> |
sortFields()
Returns the fields used to sort the query result.
|
Set<String> |
tables()
Returns the tables mentioned in the from clause.
|
String |
toString() |
public QueryData(boolean isExplain,
Set<String> projFields,
Set<String> tables,
Predicate pred,
Set<String> groupFields,
Set<AggregationFn> aggFn,
List<String> sortFields,
List<Integer> sortDirs)
isExplain - if the query is an explain statementprojFields - a collection of field namestables - a collection of table namespred - the query predicategroupFields - a collection of grouping field namesaggFn - a collection of aggregation functionssortFields - a list of field names for sortingsortDirs - a list of sort directionspublic Set<String> projectFields()
public Set<String> tables()
public Predicate pred()
public List<String> sortFields()
public List<Integer> sortDirections()
RecordComparator.public Set<String> groupFields()
public Set<AggregationFn> aggregationFn()
public boolean isExplain()
Copyright © 2022 VanillaDB Organization. All rights reserved.