hbaseGet {hbase}R Documentation

Create a new hbaseGet object

Description

Function to create a batch get object, which can then be used by fetch to fetch output from an hbase table.

Usage

hbaseGet(table, keys, family, column, cacheSize = 10L)

Arguments

table

an object of class hbaseTable on which to perform the gets.

keys

a character vector of keys coorisponding to the rows which should be returned from the table. Non-matches are silently dealt with without any warning.

family

an optional character vector describing which column families should be included in the results.

If the column input is missing, the format to family should be of the form 'family:column', where a missing column is interpreted as wanting the entire family.

For both cases, names need to be an exact match to the column family or qualifier names. Family names must match an extant family name for the given table, otherwise an error will be thrown; conversely, non-matching column names will simply be ignored.

column

an option character vector describing which columns (also called column qualifiers) are to be returned from the batch get. If supplied, it must be of the same length as family and will be interpreted by relating every element in family with the coorisponding element in column and returning only those cells with a column from the associated column family.

cacheSize

an integer giving the maximum number of rows to return from the scanner on any particular call. Should usually be equal to the maximum length that will be supplied to subsequent calls to fetch.

Details

The function creates a new hbaseGet-class object, which can then be called on using the link{fetch} method to fetch lines of data matching the given query. See the documentation on the class and methods for more details.

Value

a single hbaseGet-class object.

Author(s)

Taylor Arnold, Simon Urbanek

See Also

hbaseGet, hbaseTable, link{fetch}

Examples


## Not run: 
  table = hbaseTable("household_demographics")
  scannner = hbaseGet(table, keys = c("smithjonathan", "doejohn"))
  fetch(scannner, max.row=2L)


## End(Not run)


[Package hbase version 1.1-0 Index]