public class SelectRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
SelectRequest()
Default constructor for a new SelectRequest object.
|
SelectRequest(java.lang.String selectExpression)
Constructs a new SelectRequest object.
|
SelectRequest(java.lang.String selectExpression,
java.lang.Boolean consistentRead)
Constructs a new SelectRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getConsistentRead()
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
java.lang.String |
getNextToken()
A string informing Amazon SimpleDB where to start the next list of
ItemNames . |
java.lang.String |
getSelectExpression()
The expression used to query the domain.
|
int |
hashCode() |
java.lang.Boolean |
isConsistentRead()
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
void |
setConsistentRead(java.lang.Boolean consistentRead)
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
void |
setNextToken(java.lang.String nextToken)
A string informing Amazon SimpleDB where to start the next list of
ItemNames . |
void |
setSelectExpression(java.lang.String selectExpression)
The expression used to query the domain.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SelectRequest |
withConsistentRead(java.lang.Boolean consistentRead)
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
SelectRequest |
withNextToken(java.lang.String nextToken)
A string informing Amazon SimpleDB where to start the next list of
ItemNames . |
SelectRequest |
withSelectExpression(java.lang.String selectExpression)
The expression used to query the domain.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public SelectRequest()
public SelectRequest(java.lang.String selectExpression)
selectExpression
- The expression used to query the domain.public SelectRequest(java.lang.String selectExpression, java.lang.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.public java.lang.String getSelectExpression()
public void setSelectExpression(java.lang.String selectExpression)
selectExpression
- The expression used to query the domain.public SelectRequest withSelectExpression(java.lang.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 java.lang.String getNextToken()
ItemNames
.ItemNames
.public void setNextToken(java.lang.String nextToken)
ItemNames
.nextToken
- A string informing Amazon SimpleDB where to start the next list of
ItemNames
.public SelectRequest withNextToken(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.