[
https://issues.apache.org/jira/browse/NIFI-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443486#comment-16443486
]
ASF GitHub Bot commented on NIFI-4637:
--------------------------------------
Github user ijokarumawak commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2518#discussion_r182618909
--- Diff:
nifi-nar-bundles/nifi-standard-services/nifi-hbase-client-service-api/src/main/java/org/apache/nifi/hbase/HBaseClientService.java
---
@@ -138,6 +169,19 @@
*/
void scan(String tableName, Collection<Column> columns, String
filterExpression, long minTime, ResultHandler handler) throws IOException;
+ /**
+ * Scans the given table using the optional filter criteria and
passing each result to the provided handler.
+ *
+ * @param tableName the name of an HBase table to scan
+ * @param columns optional columns to return, if not specified all
columns are returned
+ * @param filterExpression optional filter expression, if not
specified no filtering is performed
+ * @param minTime the minimum timestamp of cells to return, passed to
the HBase scanner timeRange
+ * @param authorizations the visibility labels to apply to the scanner.
+ * @param handler a handler to process rows of the result set
+ * @throws IOException thrown when there are communication errors with
HBase
+ */
+ void scan(String tableName, Collection<Column> columns, String
filterExpression, long minTime, List<String> authorizations, ResultHandler
handler) throws IOException;
--- End diff --
I believe the argument name for the `List<String>` should be
'visibilityLabels' at this point.
`org.apache.hadoop.hbase.security.visibility.Authorizations` is created later
by using these labels. The same comment goes for other overloaded scan methods.
> Add support for HBase visibility labels to HBase processors and controller
> services
> -----------------------------------------------------------------------------------
>
> Key: NIFI-4637
> URL: https://issues.apache.org/jira/browse/NIFI-4637
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Mike Thomsen
> Assignee: Mike Thomsen
> Priority: Major
>
> HBase supports visibility labels, but you can't use them from NiFi because
> there is no way to set them. The existing processors and services should be
> upgraded to handle this capability.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)