|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.datamodeling.DynamoDBQueryExpression<T>
public class DynamoDBQueryExpression<T>
A query expression
Constructor Summary | |
---|---|
DynamoDBQueryExpression()
Deprecated. |
Method Summary | |
---|---|
java.lang.String |
getConditionalOperator()
Deprecated. Returns the logical operator on the query filter conditions. |
java.util.Map<java.lang.String,AttributeValue> |
getExclusiveStartKey()
Deprecated. Returns the exclusive start key for this query. |
T |
getHashKeyValues()
Deprecated. Gets the hash key value(s) for this query. |
java.lang.String |
getIndexName()
Deprecated. Returns the name of the index used by this query. |
java.lang.Integer |
getLimit()
Deprecated. Returns the limit of items to return from this query. |
java.util.Map<java.lang.String,Condition> |
getQueryFilter()
Deprecated. Returns the query filter applied on this query. |
java.util.Map<java.lang.String,Condition> |
getRangeKeyConditions()
Deprecated. Gets the range key condition for this query. |
boolean |
isConsistentRead()
Deprecated. Returns whether this query uses consistent reads |
boolean |
isScanIndexForward()
Deprecated. Returns whether this query scans forward. |
void |
setConditionalOperator(ConditionalOperator conditionalOperator)
Deprecated. Sets the logical operator on the query filter conditions. |
void |
setConditionalOperator(java.lang.String conditionalOperator)
Deprecated. Sets the logical operator on the query filter conditions. |
void |
setConsistentRead(boolean consistentRead)
Deprecated. Sets whether this query uses consistent reads. |
void |
setExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
Deprecated. Sets the exclusive start key for this query. |
void |
setHashKeyValues(T hashKeyValues)
Deprecated. Sets the hash key value(s) for this query. |
void |
setIndexName(java.lang.String indexName)
Deprecated. Sets the name of the index to be used by this query. |
void |
setLimit(java.lang.Integer limit)
Deprecated. Sets the limit of items to return from this query. |
void |
setQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
Deprecated. Sets the query filter applied on this query. |
void |
setRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
Deprecated. Sets the range key condition for this query. |
void |
setScanIndexForward(boolean scanIndexForward)
Deprecated. Sets whether this query scans forward. |
DynamoDBQueryExpression<T> |
withConditionalOperator(ConditionalOperator conditionalOperator)
Deprecated. Sets the logical operator on the query filter conditions. |
DynamoDBQueryExpression<T> |
withConditionalOperator(java.lang.String conditionalOperator)
Deprecated. Sets the logical operator on the query filter conditions. |
DynamoDBQueryExpression<T> |
withConsistentRead(boolean consistentRead)
Deprecated. Sets whether this query uses consistent reads and returns a pointer to this object for method-chaining. |
DynamoDBQueryExpression<T> |
withExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
Deprecated. Sets the exclusive start key for this query and returns a pointer to this object for method-chaining. |
DynamoDBQueryExpression<T> |
withHashKeyValues(T hashKObject)
Deprecated. Sets the hash key value(s) for this query. |
DynamoDBQueryExpression<T> |
withIndexName(java.lang.String indexName)
Deprecated. Sets the name of the index to be used by this query. |
DynamoDBQueryExpression<T> |
withLimit(java.lang.Integer limit)
Deprecated. Sets the limit of items to return from this query and returns a pointer to this object for method-chaining. |
DynamoDBQueryExpression<T> |
withQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
Deprecated. Sets the query filter applied on this query. |
DynamoDBQueryExpression<T> |
withQueryFilterEntry(java.lang.String attributeName,
Condition condition)
Deprecated. Adds a new condition to the the query filter. |
DynamoDBQueryExpression<T> |
withRangeKeyCondition(java.lang.String rangeKeyAttributeName,
Condition rangeKeyCondition)
Deprecated. Sets one range key condition for this query, using the attribute name of the range key. |
DynamoDBQueryExpression<T> |
withRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
Deprecated. Sets the range key condition for this query. |
DynamoDBQueryExpression<T> |
withScanIndexForward(boolean scanIndexForward)
Deprecated. Sets whether this query scans forward and returns a pointer to this object for method-chaining. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamoDBQueryExpression()
Method Detail |
---|
public boolean isConsistentRead()
public void setConsistentRead(boolean consistentRead)
public DynamoDBQueryExpression<T> withConsistentRead(boolean consistentRead)
public boolean isScanIndexForward()
public void setScanIndexForward(boolean scanIndexForward)
public DynamoDBQueryExpression<T> withScanIndexForward(boolean scanIndexForward)
public java.util.Map<java.lang.String,AttributeValue> getExclusiveStartKey()
public void setExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
public DynamoDBQueryExpression<T> withExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
public java.lang.Integer getLimit()
public void setLimit(java.lang.Integer limit)
public DynamoDBQueryExpression<T> withLimit(java.lang.Integer limit)
public T getHashKeyValues()
public void setHashKeyValues(T hashKeyValues)
public DynamoDBQueryExpression<T> withHashKeyValues(T hashKObject)
public java.util.Map<java.lang.String,Condition> getRangeKeyConditions()
public void setRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
rangeKeyConditions
- NOTE: The current DynamoDB service only allows up to one range key condition per query.
Providing more than one range key conditions will result in an
AmazonClientExceptionpublic DynamoDBQueryExpression<T> withRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
rangeKeyConditions
- NOTE: The current DynamoDB service only allows up to one range key condition per query.
Providing more than one range key conditions will result in an
AmazonClientExceptionpublic DynamoDBQueryExpression<T> withRangeKeyCondition(java.lang.String rangeKeyAttributeName, Condition rangeKeyCondition)
DynamoDBRangeKey
or DynamoDBIndexRangeKey
annotations
before executing the query.
DynamoDBMapper
will automatically
set the index name if the range key is annotated as only used by one local secondary index,
otherwise users must set the index name manually
by either setIndexName(String)
or
withIndexName(String)
.
rangeKeyAttributeName
- This could be either the primary range key of the table, or an index range key.rangeKeyCondition
- Condition specified on the given range key for this query.public java.lang.String getIndexName()
public void setIndexName(java.lang.String indexName)
DynamoDBIndexRangeKey
annotation on the getter method of the corresponding index range key
before executing the query.
public DynamoDBQueryExpression<T> withIndexName(java.lang.String indexName)
DynamoDBIndexRangeKey
annotation on the getter method of the corresponding index range key
before executing the query.
Returns a pointer to this object for method-chaining.
public java.util.Map<java.lang.String,Condition> getQueryFilter()
public void setQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
public DynamoDBQueryExpression<T> withQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
Returns a pointer to this object for method-chaining.
public DynamoDBQueryExpression<T> withQueryFilterEntry(java.lang.String attributeName, Condition condition)
Returns a pointer to this object for method-chaining.
attributeName
- The name of the attribute on which the specified condition
operates.condition
- The filter condition applied on the attribute.public java.lang.String getConditionalOperator()
public void setConditionalOperator(java.lang.String conditionalOperator)
public DynamoDBQueryExpression<T> withConditionalOperator(java.lang.String conditionalOperator)
Returns a pointer to this object for method-chaining.
public void setConditionalOperator(ConditionalOperator conditionalOperator)
public DynamoDBQueryExpression<T> withConditionalOperator(ConditionalOperator conditionalOperator)
Returns a pointer to this object for method-chaining.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |