List of usage examples for com.amazonaws.services.dynamodbv2.model Select ALL_ATTRIBUTES
Select ALL_ATTRIBUTES
To view the source code for com.amazonaws.services.dynamodbv2.model Select ALL_ATTRIBUTES.
Click Source Link
From source file:io.jare.dynamo.DyBase.java
License:Open Source License
@Override public Iterator<Domain> domain(final String name) { return this.table().frame() .through(new QueryValve().withSelect(Select.ALL_ATTRIBUTES).withLimit(1).withConsistentRead(true)) .where("domain", Conditions.equalTo(name.toLowerCase(Locale.ENGLISH))).stream().map(DyDomain::new) .collect(Collectors.<Domain>toList()).iterator(); }
From source file:io.jare.dynamo.DyUser.java
License:Open Source License
@Override public Iterable<Domain> mine() { return this.table().frame() .through(new QueryValve().withSelect(Select.ALL_ATTRIBUTES).withLimit(Tv.HUNDRED) .withConsistentRead(false).withIndexName("mine")) .where("user", Conditions.equalTo(this.handle)).stream().map(DyDomain::new) .collect(Collectors.toList()); }
From source file:org.selman.tweetamo.PersistentStore.java
License:Apache License
public QueryResult getLatestTweetsForScreenName(String screenName, long timestamp) throws Exception { try {//from www. jav a2s. c om long startDateMilli = System.currentTimeMillis(); Map<String, Condition> keyConditions = new HashMap<String, Condition>(); keyConditions.put(COL_SCREENNAME, new Condition().withComparisonOperator(ComparisonOperator.EQ) .withAttributeValueList(new AttributeValue().withS(screenName))); keyConditions.put(COL_CREATEDAT, new Condition().withComparisonOperator(ComparisonOperator.BETWEEN).withAttributeValueList( new AttributeValue().withN(Long.toString(timestamp)), new AttributeValue().withN(Long.toString(startDateMilli)))); QueryRequest queryRequest = new QueryRequest().withTableName(TABLE_NAME).withIndexName(INDEX_SCREENNAME) .withKeyConditions(keyConditions).withSelect(Select.ALL_ATTRIBUTES).withScanIndexForward(true); QueryResult result = dynamoDB.query(queryRequest); return result; } catch (Exception e) { handleException(e); } return null; }