[
https://issues.apache.org/jira/browse/NIFI-13484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamas Palfy updated NIFI-13484:
-------------------------------
Description:
https://issues.apache.org/jira/browse/NIFI-12142 changed the deprecated
{code:java}
final Scan scan = new Scan();
scan.setStartRow(startRow);
scan.setStopRow(endRow);
{code}
to
{code:java}
Scan scan = new Scan();
scan = scan.withStartRow(startRow);
scan = scan.withStopRow(endRow);
{code}
While the two are almost identical logically, they behave differently when
_startRow_ and _endRow_ are the same. While both _setStopRow_ and _withStopRow_
are _exclusive_ by default, when _startRow_ and _endRow_ are the same, this
exclusivity doesn't prevent _startRow_ from appearing in the result for the
deprecated method variants while it does for the newer ones.
was:
https://issues.apache.org/jira/browse/NIFI-12142 changed the deprecated
{code:java}
final Scan scan = new Scan();
scan.setStartRow(startRow);
scan.setStopRow(endRow);
{code}
to
{code:java}
Scan scan = new Scan();
scan = scan.withStartRow(startRow);
scan = scan.withStopRow(endRow);
{code}
While the two are almost identical logically, they behave differently when
{{startRow}} and {{endRow}} are the same. While both {{setStopRow}} and
{{withStopRow}} are _exclusive_ by default, when {{startRow}} and {{endRow}}
are the same, this exclusivity doesn't prevent {{startRow}} from appearing in
the result for the deprecated method variants while it does for the newer ones.
> HBase_2_ClientService.getResults doesn't return single row
> ----------------------------------------------------------
>
> Key: NIFI-13484
> URL: https://issues.apache.org/jira/browse/NIFI-13484
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Tamas Palfy
> Assignee: Tamas Palfy
> Priority: Major
>
> https://issues.apache.org/jira/browse/NIFI-12142 changed the deprecated
> {code:java}
> final Scan scan = new Scan();
> scan.setStartRow(startRow);
> scan.setStopRow(endRow);
> {code}
> to
> {code:java}
> Scan scan = new Scan();
> scan = scan.withStartRow(startRow);
> scan = scan.withStopRow(endRow);
> {code}
> While the two are almost identical logically, they behave differently when
> _startRow_ and _endRow_ are the same. While both _setStopRow_ and
> _withStopRow_ are _exclusive_ by default, when _startRow_ and _endRow_ are
> the same, this exclusivity doesn't prevent _startRow_ from appearing in the
> result for the deprecated method variants while it does for the newer ones.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)