public class Query
extends org.gcube.accounting.utility.postgresql.PostgreSQLQuery
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
contexts |
static String |
DATE_OF_TIMESERIES_AS_FIELD |
protected Map<String,Collection<String>> |
filters |
static String |
NESTED_TABLE_NAME |
protected org.gcube.accounting.analytics.TemporalConstraint |
temporalConstraint |
| Constructor and Description |
|---|
Query(Class<? extends org.gcube.documentstore.records.AggregatedRecord<?,?>> clz) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContext(String context) |
protected void |
addContextFilter() |
protected void |
addDateGroupBy(boolean addNested) |
protected void |
addDateOrderBy(boolean addNested) |
protected void |
addEmittedFields(boolean addNested) |
protected void |
addFilters() |
protected void |
addGroupAndOrderByForOrderByField() |
protected void |
addLimit() |
protected void |
addOrConditions(String key,
Collection<String> values) |
protected void |
addRequestedDate() |
protected void |
addRequestedField() |
protected void |
addTemporalConstraintToQuery() |
protected void |
appendTableField(String fieldName) |
String |
getDinstinctValuesQuery() |
static String |
getFormattedDate(Calendar calendar) |
String |
getNextPossibleValueQuery() |
String |
getRecordQuery() |
org.gcube.accounting.utility.postgresql.RecordToDBFields |
getRecordToDBMapper() |
Set<String> |
getRequestedTableField() |
protected String |
getTableField(String fieldName) |
protected String |
getTimeBucketCalendarInterval(org.gcube.accounting.analytics.TemporalConstraint.AggregationMode aggregationMode) |
String |
getTimeSeriesQuery() |
void |
setContexts(Set<String> contexts) |
void |
setFilters(Collection<? extends org.gcube.accounting.analytics.Filter> filters) |
void |
setLimit(Integer limit) |
void |
setOrderByField(String orderByField) |
void |
setRecordId(String recordId) |
void |
setTableFieldToRequest(String tableFieldToRequest) |
void |
setTemporalConstraint(org.gcube.accounting.analytics.TemporalConstraint temporalConstraint) |
public static final String DATE_OF_TIMESERIES_AS_FIELD
public static final String NESTED_TABLE_NAME
protected org.gcube.accounting.analytics.TemporalConstraint temporalConstraint
protected Map<String,Collection<String>> filters
public void setTemporalConstraint(org.gcube.accounting.analytics.TemporalConstraint temporalConstraint)
public void setFilters(Collection<? extends org.gcube.accounting.analytics.Filter> filters)
public void setTableFieldToRequest(String tableFieldToRequest)
public void setOrderByField(String orderByField)
public void setLimit(Integer limit)
public void addContext(String context)
public void setRecordId(String recordId)
public org.gcube.accounting.utility.postgresql.RecordToDBFields getRecordToDBMapper()
protected void appendTableField(String fieldName)
protected void addFilters()
throws SQLException
SQLExceptionprotected void addOrConditions(String key, Collection<String> values) throws SQLException
SQLExceptionprotected void addContextFilter()
throws SQLException
SQLExceptionprotected void addEmittedFields(boolean addNested)
throws Exception
Exceptionprotected String getTimeBucketCalendarInterval(org.gcube.accounting.analytics.TemporalConstraint.AggregationMode aggregationMode)
protected void addTemporalConstraintToQuery()
throws SQLException
SQLExceptionprotected void addDateGroupBy(boolean addNested)
protected void addDateOrderBy(boolean addNested)
protected void addGroupAndOrderByForOrderByField()
protected void addLimit()
protected void addRequestedField()
protected void addRequestedDate()
public String getNextPossibleValueQuery() throws Exception
Exceptionpublic String getRecordQuery()
public String getDinstinctValuesQuery()
Copyright © 2021. All Rights Reserved.