java.lang.Object | |
↳ | org.mule.module.hbase.HbaseCloudConnector |
![]() |
![]() |
HBase connector
It delegates each Processor on a HBaseService
and it accepts custom
configuration in a Key-Value fashion
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
facade | The HBaseService You may change it for mocking purposes | ||||||||||
properties | HBase internal configuration properties, be sure to add the following properties to ensure a connection against your hBase instance: "hbase.zookeeper.quorum", "hbase.zookeeper.property.clientPort" For more information please consult HBase documentation. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a column family to a table given a table and column name.
| |||||||||||
Atomically checks if a value at a (table, row,family,qualifier) matches
the given one.
| |||||||||||
Atomically checks if a value at a (table, row,family,qualifier) matches
the given one.
| |||||||||||
Creates a new table given its name.
| |||||||||||
Delete a column family
| |||||||||||
Disables and deletes an existent table.
| |||||||||||
Deletes the values at a given row
| |||||||||||
Disables an existent table
| |||||||||||
Enables an existent table.
| |||||||||||
Answers if column family exists.
| |||||||||||
Answers if a given table exists, regardless it is enabled or not
| |||||||||||
Answers the values at the given row - (table, row) combination
| |||||||||||
Atomically increments the value of at a (table, row, familyName,
familyQualifier) combination.
| |||||||||||
Answers if the HBase server is reachable
| |||||||||||
Answers if the given existent table is enabled.
| |||||||||||
Changes one or more properties of a column family in a table.
| |||||||||||
Saves a value at the specified (table, row, familyName, familyQualifier,
timestamp) combination
| |||||||||||
Scans across all rows in a table, returning a scanner over it
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
HBase internal configuration properties, be sure to add the following properties to ensure a connection against your hBase instance: "hbase.zookeeper.quorum", "hbase.zookeeper.property.clientPort" For more information please consult HBase documentation.
Adds a column family to a table given a table and column name. This Processor gracefully handles necessary table disabling and enabled.
tableName | The name of the target table |
---|---|
columnFamilyName | The name of the column |
maxVersions | The optional maximum number of versions the column family supports |
inMemory | If all the column values will be stored in the region's cache |
scope | Replication scope: 0 for locally scoped data (data for this column family will not be replicated) and 1 for globally scoped data (data will be replicated to all peers.)) |
Atomically checks if a value at a (table, row,family,qualifier) matches the given one. If it does, it performs the delete.
tableName | The name of the table that contains the cell to check. |
---|---|
rowKey | The row key that contains the cell to check. |
checkColumnFamilyName | The column family of the cell to check. |
checkColumnQualifier | The qualifier of the column to check |
checkValue | The value to check. It must be either a byte array or a serializable object. As a special case, strings are saved always in standard utf-8 format. |
deleteColumnFamilyName | The name of the column family to delete |
deleteColumnQualifier | The qualifier of the column values to delete. If no qualifier is specified, the Processor will affect all the qulifiers for the given column family name to delete. Thus it has only sense if deleteColumnFamilyName is specified |
deleteTimestamp | The timestamp of the values to delete. If no timestamp is specified, the most recent timestamp for the deleted value is used. Only has sense if deleteColumnFamilyName is specified |
deleteAllVersions | If all versions should be deleted,or only those more recent than the deleteTimestamp. Only has sense if deleteColumnFamilyName and deleteColumnQualifier are specified |
lock | An optional RowLock |
Atomically checks if a value at a (table, row,family,qualifier) matches the given one. If it does, it performs the put.
tableName | The name of the table that contains the cell to check. |
---|---|
rowKey | The row key that contains the cell to check. |
checkColumnFamilyName | The column family of the cell to check. |
checkColumnQualifier | The column qualifier of the cell to check. |
checkValue | The value to check. It must be either a byte array or a serializable object. As a special case, strings are saved always in standard utf-8 format. |
putColumnFamilyName | The column family of the cell to put. |
putColumnQualifier | The column qualifier of the cell to put. |
putTimestamp | The version dimension to put. |
value | The value to put. It must be either a byte array or a serializable object. As a special case, strings are saved always in standard utf-8 format. |
writeToWAL | Set it to false means that in a fail scenario, you will lose any increments that have not been flushed. |
lock | And optional RowLock |
Creates a new table given its name. The descriptor must be unique and not reserved.
tableName | The descriptor for the new table. |
---|
Delete a column family
tableName | Required the target table |
---|---|
columnFamilyName | Required the target column family |
Disables and deletes an existent table.
tableName | Name of table to delete |
---|
Deletes the values at a given row
tableName | The name of the target table |
---|---|
rowKey | The key of the row to delete |
columnFamilyName | Set null to delete all column families in the specified row |
columnQualifier | The qualifier of the column values to delete. If no qualifier is specified, the Processor will affect all the qulifiers for the given column family name to delete. Thus it has only sense if deleteColumnFamilyName is specified |
timestamp | The timestamp of the values to delete. If no timestamp is specified, the most recent timestamp for the deleted value is used. Only has sense if deleteColumnFamilyName is specified |
deleteAllVersions | If all versions should be deleted,or only those more recent than the deleteTimestamp. Only has sense if deleteColumnFamilyName and deleteColumnQualifier are specified |
lock | An optional RowLock |
Disables an existent table
tableName | The table name to disable |
---|
Enables an existent table.
tableName | Name of the table to enable |
---|
Answers if column family exists.
tableName | The target table name |
---|---|
columnFamilyName | The target column family name |
Answers if a given table exists, regardless it is enabled or not
tableName | The table name |
---|
Answers the values at the given row - (table, row) combination
tableName | Required the target table |
---|---|
rowKey | The key of the row to update |
columnFamilyName | Limits the scan to a specific column family or null |
columnQualifier | Limits the scan to a specific column or null. Requires a columnFamilyName to be defined. |
maxVersions | The maximum number of versions to retrieved |
timestamp | The timestamp |
Atomically increments the value of at a (table, row, familyName, familyQualifier) combination. If the cell value does not yet exist it is initialized to amount.
tableName | The name of the table that contains the cell to increment. |
---|---|
rowKey | The row key that contains the cell to increment. |
columnFamilyName | The column family of the cell to increment. |
columnQualifier | The column qualifier of the cell to increment. |
amount | The amount to increment the cell with (or decrement, if the amount is negative). |
writeToWAL | Set it to false means that in a fail scenario, you will lose any increments that have not been flushed. |
Answers if the HBase server is reachable
Answers if the given existent table is enabled.
tableName | Name of the table to query for its enabling state |
---|
Changes one or more properties of a column family in a table. This Processor gracefully handles necessary table disabling and enabled.
tableName | Required the target table |
---|---|
columnFamilyName | Required the target column family |
maxVersions | The new max amount of versions |
blocksize | The the new block size |
compressionType | The new compression type |
compactionCompressionType | The new compaction compression type |
inMemory | New value for if values are stored in Region's cache |
timeToLive | New ttl |
blockCacheEnabled | New value of enabling block cache |
bloomFilterType | New value of bloom filter type |
replicationScope | New value for replication scope |
values | Other custom parameters values |
Saves a value at the specified (table, row, familyName, familyQualifier, timestamp) combination
tableName | Required the target table |
---|---|
rowKey | The key of the row to update |
columnFamilyName | The column family dimension |
columnQualifier | The column qualifier dimension |
timestamp | The version dimension |
value | The value to put. It must be either a byte array or a serializable object. As a special case, strings are saved always in standard utf-8 format. |
writeToWAL | Set it to false means that in a fail scenario, you will lose any increments that have not been flushed. |
lock | A optional RowLock |
Scans across all rows in a table, returning a scanner over it
tableName | Limits the scan to a specific table. This is the only required argument. |
---|---|
columnFamilyName | Limits the scan to a specific column family or null |
columnQualifier | Limits the scan to a specific column or null. Requires a columnFamilyName to be defined. |
timestamp | Limits the scan to a specific timestamp |
maxTimestamp | Get versions of columns only within the specified timestamp range: [timestamp, maxTimestamp) |
caching | The number of rows for caching |
cacheBlocks | The number of rows for caching that will be passed to scanners |
maxVersions | Limits the number of versions on each column |
startRowKey | Limits the beginning of the scan to the specified row inclusive |
stopRowKey | Limits the end of the scan to the specified row exclusive |
fetchSize | The number of results internally fetched by request to the HBase server. Increase it for improving network efficiency, or decrease it for reducing memory usage |
properties |
---|