C# Class HBaseStargate.StargateClient

Mostrar archivo Open project: ksopyla/HbaseStargate.net Class Usage Examples

Public Methods

Method Description
DeleteColumns ( string table, string rowKey, string columns ) : void
DeleteRow ( string table, string rowKey ) : void
GetColumns ( string table, string rowKey, string columns ) : CellSet

Get spcified columns from paritcular row or rows

You can specified column families or columns, if you want many columns you should GetColumns("users","userlogin","info:name,info:email,friends") - retrives only columns info:name , info:email and all things in column family You can also use "*" for rows to return many rows GetColumns("users","k*","info:name,info:email,friends") - return all users whose login starts form k but if some user doesn't have one of specified columns the stargete returns error "http 404"

GetRow ( string table, string rowKey ) : CellSet

Get row or rows from table

You can use "*" for retrving many rows as follows GetRow("users","k*") - retrives all rows from table useres which keys starts from 'k'

SetNewRow ( string table, Row row ) : void
SetNewRows ( string table, Row rows ) : void
StargateClient ( string serviceAddress ) : System

Private Methods

Method Description
SetDefaultHeaders ( ) : void

Method Details

DeleteColumns() public method

public DeleteColumns ( string table, string rowKey, string columns ) : void
table string
rowKey string
columns string
return void

DeleteRow() public method

public DeleteRow ( string table, string rowKey ) : void
table string
rowKey string
return void

GetColumns() public method

Get spcified columns from paritcular row or rows
You can specified column families or columns, if you want many columns you should GetColumns("users","userlogin","info:name,info:email,friends") - retrives only columns info:name , info:email and all things in column family You can also use "*" for rows to return many rows GetColumns("users","k*","info:name,info:email,friends") - return all users whose login starts form k but if some user doesn't have one of specified columns the stargete returns error "http 404"
public GetColumns ( string table, string rowKey, string columns ) : CellSet
table string
rowKey string
columns string list of comma separated column or column family names
return HBaseStargate.Entities.CellSet

GetRow() public method

Get row or rows from table
You can use "*" for retrving many rows as follows GetRow("users","k*") - retrives all rows from table useres which keys starts from 'k'
public GetRow ( string table, string rowKey ) : CellSet
table string
rowKey string
return HBaseStargate.Entities.CellSet

SetNewRow() public method

public SetNewRow ( string table, Row row ) : void
table string
row HBaseStargate.Entities.Row
return void

SetNewRows() public method

public SetNewRows ( string table, Row rows ) : void
table string
rows HBaseStargate.Entities.Row
return void

StargateClient() public method

public StargateClient ( string serviceAddress ) : System
serviceAddress string
return System