[
https://issues.apache.org/jira/browse/GORA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lewis John McGibbney updated GORA-141:
--------------------------------------
Affects Version/s: 0.2
Fix Version/s: 0.3
> Gora should make use of QueryBase.getLimit() in setting scanner.cache in
> creating scans
> ---------------------------------------------------------------------------------------
>
> Key: GORA-141
> URL: https://issues.apache.org/jira/browse/GORA-141
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-hbase
> Affects Versions: 0.2
> Reporter: raf shin
> Fix For: 0.3
>
>
> public ResultScanner createScanner(Query<K, T> query)
> throws IOException {
> final Scan scan = new Scan();
> + scan.setCaching(query.getLimit())
> if (query.getStartKey() != null) {
> scan.setStartRow(toBytes(query.getStartKey()));
> }
> if (query.getEndKey() != null) {
> scan.setStopRow(toBytes(query.getEndKey()));
> }
> addFields(scan, query);
> return table.getScanner(scan);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira