/** * Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be * consistent eventually, and the client may not see data that was written immediately before your read. * * @param consistentRead * Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be * consistent eventually, and the client may not see data that was written immediately before your read. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectRequest withConsistentRead(Boolean consistentRead) { setConsistentRead(consistentRead); return this; }
/** * Constructs a new SelectRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param selectExpression * The expression used to query the domain. * @param consistentRead * Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be * consistent eventually, and the client may not see data that was written immediately before your read. */ public SelectRequest(String selectExpression, Boolean consistentRead) { setSelectExpression(selectExpression); setConsistentRead(consistentRead); }
/** * Constructs a new SelectRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param selectExpression The expression used to query the domain. * @param consistentRead Determines whether or not strong consistency * should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be * returned. Otherwise, results will be consistent eventually, and the * client may not see data that was written immediately before your read. */ public SelectRequest(String selectExpression, Boolean consistentRead) { setSelectExpression(selectExpression); setConsistentRead(consistentRead); }
/** * Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be * consistent eventually, and the client may not see data that was written immediately before your read. * * @param consistentRead * Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be * consistent eventually, and the client may not see data that was written immediately before your read. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectRequest withConsistentRead(Boolean consistentRead) { setConsistentRead(consistentRead); return this; }
/** * Constructs a new SelectRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param selectExpression * The expression used to query the domain. * @param consistentRead * Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If * <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be * consistent eventually, and the client may not see data that was written immediately before your read. */ public SelectRequest(String selectExpression, Boolean consistentRead) { setSelectExpression(selectExpression); setConsistentRead(consistentRead); }
/** * Performs select expression. This expression must be in format which is understandable to SimpleDB database * @param selectExpression * @param columns * @return Iterator of List<String> results */ @Override public SelectResult performSelect(String selectExpression, String nextToken) throws TranslatorException{ try { SelectRequest selectRequest = new SelectRequest(selectExpression); if (nextToken != null) { selectRequest.setNextToken(nextToken); } selectRequest.setConsistentRead(true); return client.select(selectRequest); } catch (AmazonServiceException e) { throw new TranslatorException(e); } catch (AmazonClientException e) { throw new TranslatorException(e); } }