Query.CategoryFilter, Query.CustomParameter, Query.ResultFormat
Constructor and Description |
---|
GoogleBaseQuery(java.net.URL feedUrl)
Creates a Google Base query.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Gets what will be returned, on the customer feed.
|
java.lang.String |
getCrowdBy()
Gets the criteria that will be used to crowd the results.
|
java.lang.String |
getGoogleBaseQuery()
Gets the Google Base query that will be executed.
|
java.lang.Integer |
getMaxValues()
Gets the current value for the
max-values parameter. |
java.lang.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(java.lang.String content)
Selects what to return, on the customer feed.
|
void |
setCrowdingBy(java.lang.String crowdBy)
Sets the criteria used for crowding the results in groups.
|
void |
setGoogleBaseQuery(java.lang.String query)
Sets the Google Base query to execute.
|
void |
setMaxValues(java.lang.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(java.lang.String orderBy)
Sets the criteria used to sort the results.
|
void |
setRefine(boolean refine)
Enables query refinement.
|
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 GoogleBaseQuery(java.net.URL feedUrl)
feedUrl
- the URL to connect topublic void setGoogleBaseQuery(java.lang.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 queryjava.lang.IllegalStateException
- if a fulltext query
is already set.public java.lang.String getGoogleBaseQuery()
public void setMaxValues(java.lang.Integer maxValues)
max-values
parameter used by histogram feeds
to limit the number of unique values to return for one attribute.maxValues
- public java.lang.Integer getMaxValues()
max-values
parameter.public void setRefine(boolean refine)
refine
- true to enable query refinmentpublic boolean getRefine()
public void setContent(java.lang.String content)
content
- what should be returned (see documentation)public java.lang.String getContent()
public void setOrderBy(java.lang.String orderBy)
orderBy
- sorting criteria (see documentation)public void setCrowdingBy(java.lang.String crowdBy)
crowdBy
- crowding criteria (see documentation)public java.lang.String getOrderBy()
public java.lang.String getCrowdBy()
public void setAscendingOrder(boolean ascending)
ascending
- if true, return the result in ascending
orderpublic boolean isAscendingOrder()