
com.amazonaws.services.dynamodbv2.document.api.QueryApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-osgi Show documentation
Show all versions of aws-java-sdk-osgi Show documentation
The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).
/*
* Copyright 2014-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.dynamodbv2.document.api;
import java.util.Map;
import org.apache.http.annotation.ThreadSafe;
import com.amazonaws.services.dynamodbv2.document.ItemCollection;
import com.amazonaws.services.dynamodbv2.document.KeyAttribute;
import com.amazonaws.services.dynamodbv2.document.QueryFilter;
import com.amazonaws.services.dynamodbv2.document.QueryOutcome;
import com.amazonaws.services.dynamodbv2.document.RangeKeyCondition;
import com.amazonaws.services.dynamodbv2.document.spec.QuerySpec;
/**
* A Table-centric Query API.
*/
@ThreadSafe
public interface QueryApi {
/**
* Retrieves items by the specified hash key.
*/
public ItemCollection query(String hashKeyName, Object hashKeyValue);
/**
* Retrieves items by the specified hash key.
*/
public ItemCollection query(KeyAttribute hashKey);
/**
* Retrieves items by the specified hash key and a range key condition.
*/
public ItemCollection query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition);
public ItemCollection query(String hashKeyName, Object hashKeyValue,
RangeKeyCondition rangeKeyCondition);
/**
* Retrieves items by the specified hash key, a range key condition
* and a list of query filters.
*/
public ItemCollection query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition, QueryFilter ... queryFilters);
public ItemCollection query(String hashKeyName, Object hashKeyValue,
RangeKeyCondition rangeKeyCondition, QueryFilter ... queryFilters);
/**
* Retrieves items by the specified hash key, a range key condition, and
* a filter expression string.
*
* @param filterExpression filter expression
* example: "(#a > :a) AND (#c > :c OR #e < :e)"
*
* @param nameMap actual values for the attribute-name place holders;
* can be null if there is no attribute-name placeholder.
* @param valueMap actual values for the value place holders
* can be null if there is no attribute-value placeholder.
*/
public ItemCollection query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
Map nameMap,
Map valueMap);
public ItemCollection query(String hashKeyName, Object hashKeyValue,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
Map nameMap,
Map valueMap);
/**
* Retrieves items by the specified hash key, a range key condition,
* a filter expression and a projection expression.
*
* @param filterExpression filter expression
* example: "(#a > :a) AND (#c > :c OR #e < :e)"
*
* @param projectionExpression projection expression
* example: "a.b, c[0].e"
*
* @param nameMap actual values for the attribute-name place holders;
* can be null if there is no attribute-name placeholder.
* @param valueMap actual values for the value place holders
* can be null if there is no attribute-value placeholder.
*/
public ItemCollection query(KeyAttribute hashKey,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
String projectionExpression,
Map nameMap,
Map valueMap);
/**
* Retrieves items by the specified hash key, a range key condition,
* a filter expression and a projection expression.
*
* @param filterExpression filter expression
* example: "(#a > :a) AND (#c > :c OR #e < :e)"
*
* @param projectionExpression projection expression
* example: "a.b, c[0].e"
*
* @param nameMap actual values for the attribute-name place holders;
* can be null if there is no attribute-name placeholder.
* @param valueMap actual values for the value place holders
* can be null if there is no attribute-value placeholder.
*/
public ItemCollection query(String hashKeyName, Object hashKeyValue,
RangeKeyCondition rangeKeyCondition,
String filterExpression,
String projectionExpression,
Map nameMap,
Map valueMap);
/**
* Queries table by specifying all the details.
*/
public ItemCollection query(QuerySpec spec);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy