Query.CategoryFilter, Query.CustomParameter, Query.ResultFormat| Constructor and Description |
|---|
GoogleBaseQuery(URL feedUrl)
Creates a Google Base query.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
Gets what will be returned, on the customer feed.
|
String |
getCrowdBy()
Gets the criteria that will be used to crowd the results.
|
String |
getGoogleBaseQuery()
Gets the Google Base query that will be executed.
|
Integer |
getMaxValues()
Gets the current value for the
max-values parameter. |
String |
getOrderBy()
Gets the criteria that will be used to sort the results.
|
boolean |
getRefine()
Checks whether the query should be refined.
|
boolean |
isAscendingOrder()
Checks whether the results will be returned in ascending
order.
|
void |
setAscendingOrder(boolean ascending)
Changes the order in which results are returned (ascending
or descending).
|
void |
setContent(String content)
Selects what to return, on the customer feed.
|
void |
setCrowdingBy(String crowdBy)
Sets the criteria used for crowding the results in groups.
|
void |
setGoogleBaseQuery(String query)
Sets the Google Base query to execute.
|
void |
setMaxValues(Integer maxValues)
Sets the
max-values parameter used by histogram feeds
to limit the number of unique values to return for one attribute. |
void |
setOrderBy(String orderBy)
Sets the criteria used to sort the results.
|
void |
setRefine(boolean refine)
Enables query refinement.
|
addCategoryFilter, addCustomParameter, appendQueryParameter, 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, setUpdatedMinpublic GoogleBaseQuery(URL feedUrl)
feedUrl - the URL to connect topublic void setGoogleBaseQuery(String query)
Query.setFullTextQuery(String))
which will be interpreted just like a query typed in the
search box on the Google Base website - including some
user-friendly preprocessing that might be useful or confusing
depending on what you're trying to do.
You cannot specify both a Google Base query and a Fulltext query.query - google base queryIllegalStateException - if a fulltext query
is already set.public String getGoogleBaseQuery()
public void setMaxValues(Integer maxValues)
max-values parameter used by histogram feeds
to limit the number of unique values to return for one attribute.maxValues - public Integer getMaxValues()
max-values parameter.public void setRefine(boolean refine)
refine - true to enable query refinmentpublic boolean getRefine()
public void setContent(String content)
content - what should be returned (see documentation)public String getContent()
public void setOrderBy(String orderBy)
orderBy - sorting criteria (see documentation)public void setCrowdingBy(String crowdBy)
crowdBy - crowding criteria (see documentation)public String getOrderBy()
public String getCrowdBy()
public void setAscendingOrder(boolean ascending)
ascending - if true, return the result in ascending
orderpublic boolean isAscendingOrder()
Copyright © 2012. All Rights Reserved.