Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2014-2015 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;
 
 
A Table-centric Query API.
 
 public interface QueryApi {
    
Retrieves items by the specified hash key.
 
     public ItemCollection<QueryOutcomequery(String hashKeyNameObject hashKeyValue);

    
Retrieves items by the specified hash key.
 
     public ItemCollection<QueryOutcomequery(KeyAttribute hashKey);

    
Retrieves items by the specified hash key and a range key condition.
 
     public ItemCollection<QueryOutcomequery(KeyAttribute hashKey,
             RangeKeyCondition rangeKeyCondition);
     
     public ItemCollection<QueryOutcomequery(String hashKeyNameObject hashKeyValue,
             RangeKeyCondition rangeKeyCondition);

    
Retrieves items by the specified hash key, a range key condition and a list of query filters.
 
     public ItemCollection<QueryOutcomequery(KeyAttribute hashKey,
             RangeKeyCondition rangeKeyConditionQueryFilter ... queryFilters);
 
     public ItemCollection<QueryOutcomequery(String hashKeyNameObject hashKeyValue,
             RangeKeyCondition rangeKeyConditionQueryFilter ... queryFilters);

    
Retrieves items by the specified hash key, a range key condition, and a filter expression string.

Parameters:
filterExpression filter expression example: "(#a > :a) AND (#c > :c OR #e < :e)"
nameMap actual values for the attribute-name place holders; can be null if there is no attribute-name placeholder.
valueMap actual values for the value place holders can be null if there is no attribute-value placeholder.
 
     public ItemCollection<QueryOutcomequery(KeyAttribute hashKey,
             RangeKeyCondition rangeKeyCondition,
             String filterExpression,
             Map<StringStringnameMap,
             Map<StringObjectvalueMap);
 
     public ItemCollection<QueryOutcomequery(String hashKeyNameObject hashKeyValue,
             RangeKeyCondition rangeKeyCondition,
             String filterExpression,
             Map<StringStringnameMap,
             Map<StringObjectvalueMap);

    
Retrieves items by the specified hash key, a range key condition, a filter expression and a projection expression.

Parameters:
filterExpression filter expression example: "(#a > :a) AND (#c > :c OR #e < :e)"
projectionExpression projection expression example: "a.b, c[0].e"
nameMap actual values for the attribute-name place holders; can be null if there is no attribute-name placeholder.
valueMap actual values for the value place holders can be null if there is no attribute-value placeholder.
    public ItemCollection<QueryOutcomequery(KeyAttribute hashKey,
            RangeKeyCondition rangeKeyCondition,
            String filterExpression,
            String projectionExpression,
            Map<StringStringnameMap,
            Map<StringObjectvalueMap);

    
Retrieves items by the specified hash key, a range key condition, a filter expression and a projection expression.

Parameters:
filterExpression filter expression example: "(#a > :a) AND (#c > :c OR #e < :e)"
projectionExpression projection expression example: "a.b, c[0].e"
nameMap actual values for the attribute-name place holders; can be null if there is no attribute-name placeholder.
valueMap actual values for the value place holders can be null if there is no attribute-value placeholder.
    public ItemCollection<QueryOutcomequery(String hashKeyNameObject hashKeyValue,
            RangeKeyCondition rangeKeyCondition,
            String filterExpression,
            String projectionExpression,
            Map<StringStringnameMap,
            Map<StringObjectvalueMap);

    
Queries table by specifying all the details.
    public ItemCollection<QueryOutcomequery(QuerySpec spec);
New to GrepCode? Check out our FAQ X