|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.client.Query
com.google.api.gbase.client.GoogleBaseQuery
public class GoogleBaseQuery
Adds support for the "bq" and "max-values" parameters to a gdata query.
Query
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.client.Query |
---|
Query.CategoryFilter, Query.CustomParameter, Query.ResultFormat |
Field Summary |
---|
Fields inherited from class com.google.gdata.client.Query |
---|
UNDEFINED |
Constructor Summary | |
---|---|
GoogleBaseQuery(java.net.URL feedUrl)
Creates a Google Base query. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GoogleBaseQuery(java.net.URL feedUrl)
feedUrl
- the URL to connect toMethod Detail |
---|
public 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 query
java.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |