[ 
https://issues.apache.org/jira/browse/GORA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Ratnasekera updated GORA-141:
-----------------------------------
    Fix Version/s:     (was: 0.9)
                   1.0

> 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: gora-hbase
>    Affects Versions: 0.2
>            Reporter: raf shin
>            Priority: Major
>             Fix For: 1.0
>
>
>   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 was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to