API Reference¶
intake_hbase.source.HBaseRSource |
-
class
intake_hbase.source.HBaseSource(table, connection, divisions=None, qargs=None, metadata=None)[source]¶ Execute a query on HBASE
The data are returned as tuples of (ID, data) where the data is a dict of field-value pairs.
Parameters: - table: str
HBase table to query. If within a project/namespace, either use the full table name, e.g.,
myproject_mytableor usetable_prefix='myproject'in the connection parameters.- connection: str or dict
See happybase connection arguments https://happybase.readthedocs.io/en/latest/api.html#happybase.Connection
- divisions: list or None
Partition key boundaries. If None, will have one partition for the whole table. The number of partitions will be
len(divisions) - 1.- qargs: dict or None
Further arguments to
table.scan, see https://happybase.readthedocs.io/en/latest/api.html#happybase.Table.scan
Attributes: - datashape
- description
hvplotReturns a hvPlot object to provide a high-level plotting API.
plotReturns a hvPlot object to provide a high-level plotting API.
Methods
close()Close open resources corresponding to this data source. discover()Open resource and populate the source attributes. read()Return all results read_chunked()Return iterator over container fragments of data source read_partition(i)Return a (offset_tuple, container) corresponding to i-th partition. to_dask()Return a dask-bag of results yaml()Return YAML representation of this data-source