|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.simpledb.model.SelectRequest
public class SelectRequest
Container for the parameters to the Select operation
.
The Select
operation returns a set of attributes for ItemNames
that match the select expression. Select
is
similar to the standard SQL SELECT statement.
The total size of the response cannot exceed 1 MB in total size. Amazon SimpleDB automatically adjusts the number of items returned per page to
enforce this limit. For example, if the client asks to retrieve 2500 items, but each individual item is 10 kB in size, the system returns 100 items
and an appropriate NextToken
so the client can access the next page of results.
For information on how to construct select expressions, see Using Select to Create Amazon SimpleDB Queries in the Developer Guide.
AmazonSimpleDB.select(SelectRequest)
Constructor Summary | |
---|---|
SelectRequest()
Default constructor for a new SelectRequest object. |
|
SelectRequest(String selectExpression)
Constructs a new SelectRequest object. |
|
SelectRequest(String selectExpression,
Boolean consistentRead)
Constructs a new SelectRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Boolean |
getConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
String |
getNextToken()
A string informing Amazon SimpleDB where to start the next list of ItemNames . |
String |
getSelectExpression()
The expression used to query the domain. |
int |
hashCode()
|
Boolean |
isConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
void |
setConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
void |
setNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list of ItemNames . |
void |
setSelectExpression(String selectExpression)
The expression used to query the domain. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SelectRequest |
withConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
SelectRequest |
withNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list of ItemNames . |
SelectRequest |
withSelectExpression(String selectExpression)
The expression used to query the domain. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectRequest()
public SelectRequest(String selectExpression)
selectExpression
- The expression used to query the domain.public SelectRequest(String selectExpression, Boolean consistentRead)
selectExpression
- The expression used to query the domain.consistentRead
- Determines whether or not strong consistency
should be enforced when data is read from SimpleDB. If
true
, any data previously written to SimpleDB will be
returned. Otherwise, results will be consistent eventually, and the
client may not see data that was written immediately before your read.Method Detail |
---|
public String getSelectExpression()
public void setSelectExpression(String selectExpression)
selectExpression
- The expression used to query the domain.public SelectRequest withSelectExpression(String selectExpression)
Returns a reference to this object so that method calls can be chained together.
selectExpression
- The expression used to query the domain.
public String getNextToken()
ItemNames
.
ItemNames
.public void setNextToken(String nextToken)
ItemNames
.
nextToken
- A string informing Amazon SimpleDB where to start the next list of
ItemNames
.public SelectRequest withNextToken(String nextToken)
ItemNames
.
Returns a reference to this object so that method calls can be chained together.
nextToken
- A string informing Amazon SimpleDB where to start the next list of
ItemNames
.
public Boolean isConsistentRead()
true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.
true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.public void setConsistentRead(Boolean consistentRead)
true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.
consistentRead
- Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.public SelectRequest withConsistentRead(Boolean consistentRead)
true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.
Returns a reference to this object so that method calls can be chained together.
consistentRead
- Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.
public Boolean getConsistentRead()
true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.
true
, any data previously
written to SimpleDB will be returned. Otherwise, results will be
consistent eventually, and the client may not see data that was
written immediately before your read.public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |