/** * <p> * An array of item attributes that match the query criteria. Each element in this array consists of an attribute * name and the value for that attribute. * </p> * * @param items * An array of item attributes that match the query criteria. Each element in this array consists of an * attribute name and the value for that attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryResult withItems(java.util.Collection<java.util.Map<String, AttributeValue>> items) { setItems(items); return this; }
/** * <p> * An array of item attributes that match the query criteria. Each element in this array consists of an attribute * name and the value for that attribute. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the * existing values. * </p> * * @param items * An array of item attributes that match the query criteria. Each element in this array consists of an * attribute name and the value for that attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryResult withItems(java.util.Map<String, AttributeValue>... items) { if (this.items == null) { setItems(new java.util.ArrayList<java.util.Map<String, AttributeValue>>(items.length)); } for (java.util.Map<String, AttributeValue> ele : items) { this.items.add(ele); } return this; }
/** * <p> * An array of item attributes that match the query criteria. Each element * in this array consists of an attribute name and the value for that * attribute. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param items <p> * An array of item attributes that match the query criteria. * Each element in this array consists of an attribute name and * the value for that attribute. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public QueryResult withItems(java.util.Collection<java.util.Map<String, AttributeValue>> items) { setItems(items); return this; }
if (context.testExpression("Items", targetDepth)) { context.nextToken(); queryResult.setItems(new ListUnmarshaller<java.util.Map<String, AttributeValue>>(new MapUnmarshaller<String, AttributeValue>(context .getUnmarshaller(String.class), AttributeValueJsonUnmarshaller.getInstance())).unmarshall(context));
String name = reader.nextName(); if (name.equals("Items")) { queryResult.setItems(new ListUnmarshaller<java.util.Map<String, AttributeValue>>( new MapUnmarshaller<AttributeValue>(AttributeValueJsonUnmarshaller .getInstance()
/** * <p> * An array of item attributes that match the query criteria. Each element in this array consists of an attribute * name and the value for that attribute. * </p> * * @param items * An array of item attributes that match the query criteria. Each element in this array consists of an * attribute name and the value for that attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryResult withItems(java.util.Collection<java.util.Map<String, AttributeValue>> items) { setItems(items); return this; }
/** * <p> * An array of item attributes that match the query criteria. Each element in this array consists of an attribute * name and the value for that attribute. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the * existing values. * </p> * * @param items * An array of item attributes that match the query criteria. Each element in this array consists of an * attribute name and the value for that attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryResult withItems(java.util.Map<String, AttributeValue>... items) { if (this.items == null) { setItems(new java.util.ArrayList<java.util.Map<String, AttributeValue>>(items.length)); } for (java.util.Map<String, AttributeValue> ele : items) { this.items.add(ele); } return this; }
@Override public QueryResult query(QueryRequest request) throws AmazonServiceException, AmazonClientException { Collection<String> attributesToGet = addSpecialAttributes(request.getAttributesToGet()); request.setAttributesToGet(attributesToGet); QueryResult result = txManager.getClient().query(request); List<Map<String, AttributeValue>> items = handleItems(result.getItems(), request.getTableName(), request.getAttributesToGet()); result.setItems(items); return result; }
if (context.testExpression("Items", targetDepth)) { context.nextToken(); queryResult.setItems(new ListUnmarshaller<java.util.Map<String, AttributeValue>>(new MapUnmarshaller<String, AttributeValue>(context .getUnmarshaller(String.class), AttributeValueJsonUnmarshaller.getInstance())).unmarshall(context));