public DynamoDBDataReader(ServiceCursorDef cursorDef, RequestWrapper request, IDataParameterCollection parameters) { Query query = cursorDef.Query as Query; selectList = query.SelectList; mRequest = request; mResponse = mRequest.Read(); }
public bool Read() { if (mCurrentPosition == ItemCount && mCurrentPosition > 0) { mResponse = mRequest.Read(mResponse.LastEvaluatedKey); /* * * A query and scan operation returns a maximum 1 MB of data in a single operation. * The result set contains the last_evaluated_key field. If more data is available for the operation, * this key contains information about the last evaluated key. Otherwise, the key remains empty. * */ } mCurrentPosition++; return(mCurrentPosition < ItemCount); }