@Tags(value={"hbase","client"}) @CapabilityDescription(value="A controller service for accessing an HBase client.") public interface HBaseClientService extends ControllerService
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndPut(String tableName,
byte[] rowId,
byte[] family,
byte[] qualifier,
byte[] value,
PutColumn column)
Atomically checks if a row/family/qualifier value matches the expected value.
|
void |
delete(String tableName,
byte[] rowId)
Deletes the given row on HBase.
|
void |
delete(String tableName,
byte[] rowId,
String visibilityLabel)
Deletes the given row on HBase.
|
void |
delete(String tableName,
List<byte[]> rowIds)
Deletes a list of rows in HBase.
|
void |
delete(String tableName,
List<byte[]> rowIds,
String visibilityLabel)
Deletes a list of rows in HBase.
|
void |
deleteCells(String tableName,
List<DeleteRequest> deletes)
Deletes a list of cells from HBase.
|
void |
put(String tableName,
byte[] rowId,
Collection<PutColumn> columns)
Puts the given row to HBase with the provided columns.
|
void |
put(String tableName,
Collection<PutFlowFile> puts)
Puts a batch of mutations to the given table.
|
void |
scan(String tableName,
byte[] startRow,
byte[] endRow,
Collection<Column> columns,
List<String> authorizations,
ResultHandler handler)
Scans the given table for the given rowId and passes the result to the handler.
|
void |
scan(String tableName,
Collection<Column> columns,
String filterExpression,
long minTime,
List<String> authorizations,
ResultHandler handler)
Scans the given table using the optional filter criteria and passing each result to the provided handler.
|
void |
scan(String tableName,
Collection<Column> columns,
String filterExpression,
long minTime,
ResultHandler handler)
Scans the given table using the optional filter criteria and passing each result to the provided handler.
|
void |
scan(String tableName,
String startRow,
String endRow,
String filterExpression,
Long timerangeMin,
Long timerangeMax,
Integer limitRows,
Boolean isReversed,
Boolean blockCache,
Collection<Column> columns,
List<String> authorizations,
ResultHandler handler)
Scans the given table for the given range of row keys or time rage and passes the result to a handler.
|
byte[] |
toBytes(boolean b)
Converts the given boolean to it's byte representation.
|
byte[] |
toBytes(double d)
Converts the given double to it's byte representation.
|
byte[] |
toBytes(float f)
Converts the given float to its byte representation.
|
byte[] |
toBytes(int i)
Converts the given float to its byte representation.
|
byte[] |
toBytes(long l)
Converts the given long to it's byte representation.
|
byte[] |
toBytes(String s)
Converts the given string to it's byte representation.
|
byte[] |
toBytesBinary(String s)
Converts the given binary formatted string to a byte representation
|
default String |
toTransitUri(String tableName,
String rowKey)
Create a transit URI from the current configuration and the specified table name.
|
initialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatevoid put(String tableName, Collection<PutFlowFile> puts) throws IOException
tableName - the name of an HBase tableputs - a list of put mutations for the given tableIOException - thrown when there are communication errors with HBasevoid put(String tableName, byte[] rowId, Collection<PutColumn> columns) throws IOException
tableName - the name of an HBase tablerowId - the id of the row to putcolumns - the columns of the row to putIOException - thrown when there are communication errors with HBaseboolean checkAndPut(String tableName, byte[] rowId, byte[] family, byte[] qualifier, byte[] value, PutColumn column) throws IOException
tableName - the name of an HBase tablerowId - the id of the row to checkfamily - the family of the row to checkqualifier - the qualifier of the row to checkvalue - the value of the row to check. If null, the check is for the lack of column (ie: non-existence)IOException - thrown when there are communication errors with HBase$void delete(String tableName, byte[] rowId) throws IOException
tableName - the name of an HBase tablerowId - the id of the row to deleteIOException - thrown when there are communication errors with HBasevoid delete(String tableName, byte[] rowId, String visibilityLabel) throws IOException
tableName - the name of an HBase tablerowId - the id of the row to deletevisibilityLabel - a visibility label to apply to the deleteIOException - thrown when there are communication errors with HBasevoid delete(String tableName, List<byte[]> rowIds) throws IOException
tableName - the name of an HBase tablerowIds - a list of rowIds to send in a batch deleteIOExceptionvoid deleteCells(String tableName, List<DeleteRequest> deletes) throws IOException
tableName - the name of an HBase table.deletes - a list of DeleteRequest objects.IOException - thrown when there are communication errors with HBasevoid delete(String tableName, List<byte[]> rowIds, String visibilityLabel) throws IOException
tableName - the name of an HBase tablerowIds - a list of rowIds to send in a batch deletevisibilityLabel - a visibility label expressionIOExceptionvoid scan(String tableName, Collection<Column> columns, String filterExpression, long minTime, ResultHandler handler) throws IOException
tableName - the name of an HBase table to scancolumns - optional columns to return, if not specified all columns are returnedfilterExpression - optional filter expression, if not specified no filtering is performedminTime - the minimum timestamp of cells to return, passed to the HBase scanner timeRangehandler - a handler to process rows of the result setIOException - thrown when there are communication errors with HBasevoid scan(String tableName, Collection<Column> columns, String filterExpression, long minTime, List<String> authorizations, ResultHandler handler) throws IOException
tableName - the name of an HBase table to scancolumns - optional columns to return, if not specified all columns are returnedfilterExpression - optional filter expression, if not specified no filtering is performedminTime - the minimum timestamp of cells to return, passed to the HBase scanner timeRangeauthorizations - the visibility labels to apply to the scanner.handler - a handler to process rows of the result setIOException - thrown when there are communication errors with HBasevoid scan(String tableName, byte[] startRow, byte[] endRow, Collection<Column> columns, List<String> authorizations, ResultHandler handler) throws IOException
tableName - the name of an HBase table to scanstartRow - the row identifier to start scanning atendRow - the row identifier to end scanning atcolumns - optional columns to return, if not specified all columns are returnedhandler - a handler to process rows of the resultIOException - thrown when there are communication errors with HBasevoid scan(String tableName, String startRow, String endRow, String filterExpression, Long timerangeMin, Long timerangeMax, Integer limitRows, Boolean isReversed, Boolean blockCache, Collection<Column> columns, List<String> authorizations, ResultHandler handler) throws IOException
tableName - the name of an HBase table to scanstartRow - the row identifier to start scanning atendRow - the row identifier to end scanning atfilterExpression - optional filter expression, if not specified no filtering is performedtimerangeMin - the minimum timestamp of cells to return, passed to the HBase scanner timeRangetimerangeMax - the maximum timestamp of cells to return, passed to the HBase scanner timeRangelimitRows - the maximum number of rows to be returned by scannerisReversed - whether this scan is a reversed one.blockCache - set to use the block cache option of hbase scan.columns - optional columns to return, if not specified all columns are returnedauthorizations - optional list of visibility labels that the user should be able to see when communicating with HBasehandler - a handler to process rows of the resultIOExceptionbyte[] toBytes(boolean b)
b - a booleanbyte[] toBytes(float f)
f - a floatbyte[] toBytes(int i)
i - an intbyte[] toBytes(long l)
l - a longbyte[] toBytes(double d)
d - a doublebyte[] toBytes(String s)
s - a stringbyte[] toBytesBinary(String s)
s - a binary encoded stringdefault String toTransitUri(String tableName, String rowKey)
tableName - The name of a HBase tablerowKey - The target HBase row key, this can be null or empty string if the operation is not targeted to a specific rowCopyright © 2023 Apache NiFi Project. All rights reserved.