public class DataQuery extends Query
Query.CategoryFilter, Query.CustomParameter, Query.ResultFormat
Constructor and Description |
---|
DataQuery(java.net.URL feedUrl)
Constructs a new query object that targets a feed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDimensions()
Returns the comma separated list of row keys.
|
java.lang.String |
getEndDate()
Returns the last day for which to retrieve data in form YYYY-MM-DD.
|
java.lang.String |
getFilters()
Returns the dimension and metric filters.
|
java.lang.String |
getIds()
Returns the Google Analytics profile ID, prefixed by 'ga:'.
|
java.lang.String |
getMetrics()
Returns the comma separated list of numeric value fields.
|
java.lang.String |
getSegment()
Returns the segment to be applied.
|
java.lang.String |
getSort()
Returns the comma separated list of sort parameters in order of importance.
|
java.lang.String |
getStartDate()
Returns the first day for which to retrieve data in form YYYY-MM-DD.
|
void |
setDimensions(java.lang.String dimensions)
Sets the comma separated list of row keys.
|
void |
setEndDate(java.lang.String endDate)
Sets the last day for which to retrieve data in form YYYY-MM-DD.
|
void |
setFilters(java.lang.String filters)
Sets the dimension and metric filters.
|
void |
setIds(java.lang.String ids)
Sets the Google Analytics profile ID, prefixed by 'ga:'.
|
void |
setMetrics(java.lang.String metrics)
Sets the comma separated list of numeric value fields.
|
void |
setSegment(java.lang.String segment)
Sets the segment to be applied.
|
void |
setSort(java.lang.String sort)
Sets the comma separated list of sort parameters in order of importance.
|
void |
setStartDate(java.lang.String startDate)
Sets the first day for which to retrieve data in form YYYY-MM-DD.
|
addCategoryFilter, addCustomParameter, getAuthor, getCategoryFilters, getCustomParameters, getCustomParameters, getFeedUrl, getFields, getFullTextQuery, getIntegerCustomParameter, getMaxResults, getPublishedMax, getPublishedMin, getQueryUri, getResultFormat, getStartIndex, getStringCustomParameter, getUpdatedMax, getUpdatedMin, getUrl, isStrict, isValidState, setAuthor, setFields, setFullTextQuery, setIntegerCustomParameter, setMaxResults, setPublishedMax, setPublishedMin, setResultFormat, setStartIndex, setStrict, setStringCustomParameter, setUpdatedMax, setUpdatedMin
public DataQuery(java.net.URL feedUrl)
feedUrl
- the URL of the feed against which queries will be executed.public java.lang.String getDimensions()
null
to indicate
that the parameter is not set.public void setDimensions(java.lang.String dimensions)
dimensions
- comma separated list of row keys or null
to
remove this parameter if set.public java.lang.String getEndDate()
null
to indicate that the parameter is not set.public void setEndDate(java.lang.String endDate)
endDate
- last day for which to retrieve data in form YYYY-MM-DD or
null
to remove this parameter if set.public java.lang.String getFilters()
null
to indicate that
the parameter is not set.public void setFilters(java.lang.String filters)
filters
- dimension and metric filters or null
to remove
this parameter if set.public java.lang.String getIds()
null
to indicate that the parameter is not set.public void setIds(java.lang.String ids)
ids
- Google Analytics profile ID, prefixed by 'ga:' or
null
to remove this parameter if set.public java.lang.String getMetrics()
null
to indicate that the parameter is not set.public void setMetrics(java.lang.String metrics)
metrics
- comma separated list of numeric value fields or
null
to remove this parameter if set.public java.lang.String getSegment()
null
to indicate that the
parameter is not set.public void setSegment(java.lang.String segment)
segment
- segment to be applied or null
to remove this
parameter if set.public java.lang.String getSort()
null
to indicate that the parameter is not set.public void setSort(java.lang.String sort)
sort
- comma separated list of sort parameters in order of importance
or null
to remove this parameter if set.public java.lang.String getStartDate()
null
to indicate that the parameter is not set.public void setStartDate(java.lang.String startDate)
startDate
- first day for which to retrieve data in form YYYY-MM-DD or
null
to remove this parameter if set.