public class ComplexDataQueryImpl extends BaseDataQuery implements ComplexDataQuery
Constructor and Description |
---|
ComplexDataQueryImpl(java.lang.String datasetId,
TEXT_SEARCH datasetIdOperator,
java.util.Set<DataProviderBean> dataProviders,
DataStructureBean dataStructure,
DataflowBean dataFlow,
ProvisionAgreementBean provisionAgreement,
java.util.List<TimeRange> lastUpdatedDate,
java.lang.Integer maxObs,
boolean orderAsc,
java.lang.Integer defaultLimit,
OBSERVATION_ACTION obsAction,
java.lang.String dimensionAtObservation,
boolean hasExplicitMeasures,
DATA_QUERY_DETAIL queryDetail,
ComplexDataQuerySelectionGroup... complexDataQuerySelectionGroup) |
ComplexDataQueryImpl(java.lang.String datasetId,
TEXT_SEARCH datasetIdOperator,
java.util.Set<DataProviderBean> dataProviders,
DataStructureBean dataStructure,
DataflowBean dataFlow,
ProvisionAgreementBean provisionAgreement,
java.util.List<TimeRange> lastUpdatedDate,
java.lang.Integer maxObs,
boolean orderAsc,
java.lang.Integer defaultLimit,
OBSERVATION_ACTION obsAction,
java.lang.String dimensionAtObservation,
boolean hasExplicitMeasures,
DATA_QUERY_DETAIL queryDetail,
java.util.Set<ComplexDataQuerySelection> complexSelections,
java.util.Date dateFrom,
ORDERED_OPERATOR dateFromOperator,
java.util.Date dateTo,
ORDERED_OPERATOR dateToOperator,
java.util.Set<ComplexComponentValue> primaryMeasureValues) |
ComplexDataQueryImpl(java.lang.String datasetId,
TEXT_SEARCH datasetIdOperator,
java.util.Set<DataProviderBean> dataProviders,
DataStructureBean dataStructure,
DataflowBean dataFlow,
ProvisionAgreementBean provisionAgreement,
java.util.List<TimeRange> lastUpdatedDate,
java.lang.Integer maxObs,
java.lang.Integer defaultLimit,
boolean orderAsc,
OBSERVATION_ACTION obsAction,
java.lang.String dimensionAtObservation,
boolean hasExplicitMeasures,
DATA_QUERY_DETAIL queryDetail,
java.util.Collection<ComplexDataQuerySelectionGroup> complexDataQuerySelectionGroup) |
ComplexDataQueryImpl(java.lang.String datasetId,
TEXT_SEARCH datasetIdOperator,
java.util.Set<DataProviderBean> dataProviders,
DataStructureBean dataStructure,
DataflowBean dataFlow,
ProvisionAgreementBean provisionAgreement,
java.util.List<TimeRange> lastUpdatedDate,
java.lang.Integer firstNObs,
java.lang.Integer lastNObs,
java.lang.Integer defaultLimit,
OBSERVATION_ACTION obsAction,
java.lang.String dimensionAtObservation,
boolean hasExplicitMeasures,
DATA_QUERY_DETAIL queryDetail,
java.util.Collection<ComplexDataQuerySelectionGroup> complexDataQuerySelectionGroup) |
ComplexDataQueryImpl(java.lang.String datasetId,
TEXT_SEARCH datasetIdOperator,
java.util.Set<DataProviderBean> dataProviders,
DataStructureBean dataStructure,
DataflowBean dataFlow,
ProvisionAgreementBean provisionAgreement,
java.util.List<TimeRange> lastUpdatedDate,
java.lang.Integer firstNObs,
java.lang.Integer lastNObs,
java.lang.Integer defaultLimit,
OBSERVATION_ACTION obsAction,
java.lang.String dimensionAtObservation,
boolean hasExplicitMeasures,
DATA_QUERY_DETAIL queryDetail,
java.util.Set<ComplexDataQuerySelection> complexSelections,
java.util.Date dateFrom,
ORDERED_OPERATOR dateFromOperator,
java.util.Date dateTo,
ORDERED_OPERATOR dateToOperator,
java.util.Set<ComplexComponentValue> primaryMeasureValues) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dimensionAtObservation()
Returns the id of the dimension to be attached at the observation level,
if not specified the returned data will be time series.
|
DataflowBean |
getDataflow()
Returns the Dataflow that the query is returning data for.
|
java.util.Set<DataProviderBean> |
getDataProvider()
Returns the data provider(s) that the query is for, an empty list represents ALL.
|
DATA_QUERY_DETAIL |
getDataQueryDetail()
Returns the detail of the query.
|
java.lang.String |
getDatasetId()
Returns the id of the dataset from which data will be returned or null if unspecified
|
TEXT_SEARCH |
getDatasetIdOperator()
The id of the dataset requested should satisfy the condition implied by the operator this method returns.
|
DataStructureBean |
getDataStructure()
Returns the Key Family (Data Structure Definition) that this query is returning data for.
|
java.lang.Integer |
getDefaultLimit()
Returns the suggested maximum response size or null if unspecified
|
java.lang.Integer |
getFirstNObservations()
Returns the first 'n' observations, for each series key, to return as a result of a data query.
|
java.lang.Integer |
getLastNObservations()
Returns the last 'n' observations, for each series key, to return as a result of a data query.
|
java.util.List<TimeRange> |
getLastUpdatedDateTimeRange()
This method accomplishes the following criteria :match data based on when they were last updated
The date points to the start date or the range that the queried date must occur within and/ or to the end period of the range It returns null if unspecified. |
OBSERVATION_ACTION |
getObservationAction()
Returns the type of observations to be returned.
Defaults to ACTIVE |
ProvisionAgreementBean |
getProvisionAgreement()
Returns the Provision Agreement that the query is returning data for or null if unspecified
|
java.util.List<ComplexDataQuerySelectionGroup> |
getSelectionGroups()
Returns a list of selection groups.
|
boolean |
hasExplicitMeasures()
Returns true or false depending on the existence of explicit measures
Defaults to false
|
boolean |
hasSelections()
Returns true if this query has one or more selection groups on it, false means the query is a query for all.
|
getDimensionAtObservation
public ComplexDataQueryImpl(java.lang.String datasetId, TEXT_SEARCH datasetIdOperator, java.util.Set<DataProviderBean> dataProviders, DataStructureBean dataStructure, DataflowBean dataFlow, ProvisionAgreementBean provisionAgreement, java.util.List<TimeRange> lastUpdatedDate, java.lang.Integer maxObs, java.lang.Integer defaultLimit, boolean orderAsc, OBSERVATION_ACTION obsAction, java.lang.String dimensionAtObservation, boolean hasExplicitMeasures, DATA_QUERY_DETAIL queryDetail, java.util.Collection<ComplexDataQuerySelectionGroup> complexDataQuerySelectionGroup)
public ComplexDataQueryImpl(java.lang.String datasetId, TEXT_SEARCH datasetIdOperator, java.util.Set<DataProviderBean> dataProviders, DataStructureBean dataStructure, DataflowBean dataFlow, ProvisionAgreementBean provisionAgreement, java.util.List<TimeRange> lastUpdatedDate, java.lang.Integer firstNObs, java.lang.Integer lastNObs, java.lang.Integer defaultLimit, OBSERVATION_ACTION obsAction, java.lang.String dimensionAtObservation, boolean hasExplicitMeasures, DATA_QUERY_DETAIL queryDetail, java.util.Collection<ComplexDataQuerySelectionGroup> complexDataQuerySelectionGroup)
public ComplexDataQueryImpl(java.lang.String datasetId, TEXT_SEARCH datasetIdOperator, java.util.Set<DataProviderBean> dataProviders, DataStructureBean dataStructure, DataflowBean dataFlow, ProvisionAgreementBean provisionAgreement, java.util.List<TimeRange> lastUpdatedDate, java.lang.Integer maxObs, boolean orderAsc, java.lang.Integer defaultLimit, OBSERVATION_ACTION obsAction, java.lang.String dimensionAtObservation, boolean hasExplicitMeasures, DATA_QUERY_DETAIL queryDetail, ComplexDataQuerySelectionGroup... complexDataQuerySelectionGroup)
public ComplexDataQueryImpl(java.lang.String datasetId, TEXT_SEARCH datasetIdOperator, java.util.Set<DataProviderBean> dataProviders, DataStructureBean dataStructure, DataflowBean dataFlow, ProvisionAgreementBean provisionAgreement, java.util.List<TimeRange> lastUpdatedDate, java.lang.Integer maxObs, boolean orderAsc, java.lang.Integer defaultLimit, OBSERVATION_ACTION obsAction, java.lang.String dimensionAtObservation, boolean hasExplicitMeasures, DATA_QUERY_DETAIL queryDetail, java.util.Set<ComplexDataQuerySelection> complexSelections, java.util.Date dateFrom, ORDERED_OPERATOR dateFromOperator, java.util.Date dateTo, ORDERED_OPERATOR dateToOperator, java.util.Set<ComplexComponentValue> primaryMeasureValues)
public ComplexDataQueryImpl(java.lang.String datasetId, TEXT_SEARCH datasetIdOperator, java.util.Set<DataProviderBean> dataProviders, DataStructureBean dataStructure, DataflowBean dataFlow, ProvisionAgreementBean provisionAgreement, java.util.List<TimeRange> lastUpdatedDate, java.lang.Integer firstNObs, java.lang.Integer lastNObs, java.lang.Integer defaultLimit, OBSERVATION_ACTION obsAction, java.lang.String dimensionAtObservation, boolean hasExplicitMeasures, DATA_QUERY_DETAIL queryDetail, java.util.Set<ComplexDataQuerySelection> complexSelections, java.util.Date dateFrom, ORDERED_OPERATOR dateFromOperator, java.util.Date dateTo, ORDERED_OPERATOR dateToOperator, java.util.Set<ComplexComponentValue> primaryMeasureValues)
public OBSERVATION_ACTION getObservationAction()
ComplexDataQuery
getObservationAction
in interface ComplexDataQuery
public java.lang.String dimensionAtObservation()
BaseDataQuery
dimensionAtObservation
in interface BaseDataQuery
public boolean hasExplicitMeasures()
ComplexDataQuery
hasExplicitMeasures
in interface ComplexDataQuery
public DATA_QUERY_DETAIL getDataQueryDetail()
BaseDataQuery
getDataQueryDetail
in interface BaseDataQuery
public java.lang.String getDatasetId()
ComplexDataQuery
getDatasetId
in interface ComplexDataQuery
public TEXT_SEARCH getDatasetIdOperator()
ComplexDataQuery
getDatasetIdOperator
in interface ComplexDataQuery
public java.util.List<TimeRange> getLastUpdatedDateTimeRange()
ComplexDataQuery
getLastUpdatedDateTimeRange
in interface ComplexDataQuery
public java.util.Set<DataProviderBean> getDataProvider()
BaseDataQuery
getDataProvider
in interface BaseDataQuery
public DataStructureBean getDataStructure()
BaseDataQuery
getDataStructure
in interface BaseDataQuery
public DataflowBean getDataflow()
BaseDataQuery
getDataflow
in interface BaseDataQuery
public ProvisionAgreementBean getProvisionAgreement()
ComplexDataQuery
getProvisionAgreement
in interface ComplexDataQuery
public java.util.List<ComplexDataQuerySelectionGroup> getSelectionGroups()
ComplexDataQuery
getSelectionGroups
in interface ComplexDataQuery
public boolean hasSelections()
BaseDataQuery
hasSelections
in interface BaseDataQuery
public java.lang.Integer getFirstNObservations()
BaseDataQuery
getFirstNObservations
in interface BaseDataQuery
public java.lang.Integer getLastNObservations()
BaseDataQuery
getLastNObservations
in interface BaseDataQuery
public java.lang.Integer getDefaultLimit()
ComplexDataQuery
getDefaultLimit
in interface ComplexDataQuery