Thrift module: Hbase
Type declarations
Typedef: Text
Base type: string
Typedef: Bytes
Base type: string
Typedef: ScannerID
Base type: i32
Data structures
Struct: TCell
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| value | Bytes | yes | ||
| timestamp | i64 | yes |
TCell - Used to transport a cell value (byte[]) and the timestamp it was stored with together as a result for get and getRow methods. This promotes the timestamp of a cell to a first-class value, making it easy to take note of temporal data. Cell is used all the way from HStore up to HTable.
Struct: ColumnDescriptor
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| name | Text | yes | ||
| maxVersions | i32 | yes | 3 | |
| compression | string | yes | "NONE" | |
| inMemory | bool | yes | 0 | |
| bloomFilterType | string | yes | "NONE" | |
| bloomFilterVectorSize | i32 | yes | 0 | |
| bloomFilterNbHashes | i32 | yes | 0 | |
| blockCacheEnabled | bool | yes | 0 | |
| timeToLive | i32 | yes | -1 |
An HColumnDescriptor contains information about a column family such as the number of versions, compression settings, etc. It is used as input when creating a table or adding a column.
Struct: TRegionInfo
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| startKey | Text | yes | ||
| endKey | Text | yes | ||
| id | i64 | yes | ||
| name | Text | yes | ||
| version | byte | yes |
A TRegionInfo contains information about an HTable region.
Struct: Mutation
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| isDelete | bool | yes | 0 | |
| column | Text | yes | ||
| value | Text | yes |
A Mutation object is used to either update or delete a column-value.
Struct: BatchMutation
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| row | Text | yes | ||
| mutations | list< | yes |
A BatchMutation object is used to apply a number of Mutations to a single row.
Struct: TRowResult
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| row | Text | yes | ||
| columns | map< | yes |
Holds row name and then a map of columns to cells.
Exception: IOError
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| message | string | yes |
An IOError exception signals that an error occurred communicating to the Hbase master or an Hbase region server. Also used to return more general Hbase error conditions.
Exception: IllegalArgument
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| message | string | yes |
An IllegalArgument exception indicates an illegal or invalid argument was passed into a procedure.
Exception: AlreadyExists
| Field | Type | Description | Required | Default value |
|---|---|---|---|---|
| message | string | yes |
An AlreadyExists exceptions signals that a table with the specified name already exists
Services
Service: Hbase
Function: Hbase.enableTable
Brings a table on-line (enables it)voidenableTable(BytestableName) throwsIOError
Parameters
| Name | Description |
|---|---|
| tableName | name of the table |
Function: Hbase.disableTable
Disables a table (takes it off-line) If it is being served, the master will tell the servers to stop serving it.voiddisableTable(BytestableName) throwsIOError
Parameters
| Name | Description |
|---|---|
| tableName | name of the table |
Function: Hbase.isTableEnabled
@return true if table is on-lineboolisTableEnabled(BytestableName) throwsIOError
Parameters
| Name | Description |
|---|---|
| tableName | name of the table to check |
Function: Hbase.compact
voidcompact(BytestableNameOrRegionName) throwsIOError
Parameters
| Name | Description |
|---|---|
| tableNameOrRegionName |