<?php
namespace Hbase;
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
use Thrift\Base\TBase;
use Thrift\Type\TType;
use Thrift\Type\TMessageType;
use Thrift\Exception\TException;
use Thrift\Exception\TProtocolException;
use Thrift\Protocol\TProtocol;
use Thrift\Protocol\TBinaryProtocolAccelerated;
use Thrift\Exception\TApplicationException;
interface HbaseIf {
/**
* Brings a table on-line (enables it)
*
* @param string $tableName name of the table
*
* @throws \Hbase\IOError
*/
public function enableTable($tableName);
/**
* Disables a table (takes it off-line) If it is being served, the master
* will tell the servers to stop serving it.
*
* @param string $tableName name of the table
*
* @throws \Hbase\IOError
*/
public function disableTable($tableName);
/**
* @return true if table is on-line
*
* @param string $tableName name of the table to check
*
* @return bool
* @throws \Hbase\IOError
*/
public function isTableEnabled($tableName);
/**
* @param string $tableNameOrRegionName
* @throws \Hbase\IOError
*/
public function compact($tableNameOrRegionName);
/**
* @param string $tableNameOrRegionName
* @throws \Hbase\IOError
*/
public function majorCompact($tableNameOrRegionName);
/**
* List all the userspace tables.
*
* @return returns a list of names
*
* @return string[]
* @throws \Hbase\IOError
*/
public function getTableNames();
/**
* List all the column families assoicated with a table.
*
* @return list of column family descriptors
*
* @param string $tableName table name
*
* @return array
* @throws \Hbase\IOError
*/
public function getColumnDescriptors($tableName);
/**
* List the regions associated with a table.
*
* @return list of region descriptors
*
* @param string $tableName table name
*
* @return \Hbase\TRegionInfo[]
* @throws \Hbase\IOError
*/
public function getTableRegions($tableName);
/**
* Create a table with the specified column families. The name
* field for each ColumnDescriptor must be set and must end in a
* colon (:). All other fields are optional and will get default
* values if not explicitly specified.
*
* @throws IllegalArgument if an input parameter is invalid
*
* @throws AlreadyExists if the table name already exists
*
* @param string $tableName name of table to create
*
* @param \Hbase\ColumnDescriptor[] $columnFamilies list of column family descriptors
*
* @throws \Hbase\IOError
* @throws \Hbase\IllegalArgument
* @throws \Hbase\AlreadyExists
*/
public function createTable($tableName, array $columnFamilies);
/**
* Deletes a table
*
* @throws IOError if table doesn't exist on server or there was some other
* problem
*
* @param string $tableName name of table to delete
*
* @throws \Hbase\IOError
*/
public function deleteTable($tableName);
/**
* Get a single TCell for the specified table, row, and column at the
* latest timestamp. Returns an empty list if no such value exists.
*
* @return value for specified row/column
*
* @param string $tableName name of table
*
* @param string $row row key
*
* @param string $column column name
*
* @param array $attributes Get attributes
*
* @return \Hbase\TCell[]
* @throws \Hbase\IOError
*/
public function get($tableName, $row, $column, array $attributes);
/**
* Get the specified number of versions for the specified table,
* row, and column.
*
* @return list of cells for specified row/column
*
* @param string $tableName name of table
*
* @param string $row row key
*
* @param string $column column name
*
* @param int $numVersions number of versions to retrieve
*
* @param array $attributes Get attributes
*
* @return \Hbase\TCell[]
* @throws \Hbase\IOError
*/
public function getVer($tableName, $row, $column, $numVersions, array $attributes);
/**
* Get the specified number of versions for the specified table,
* row, and column. Only versions less than or equal to the specified
* timestamp will be returned.
*
* @return list of cells for specified row/column
*
* @param string $tableName name of table
*
* @param string $row row key
*
* @param string $column column name
*
* @param int $timestamp timestamp
*
* @param int $numVersions number of versions to retrieve
*
* @param array $attributes Get attributes
*
* @return \Hbase\TCell[]
* @throws \Hbase\IOError
*/
public function getVerTs($tableName, $row, $column, $timestamp, $numVersions, array $attributes);
/**
* Get all the data for the specified table and row at the latest
* timestamp. Returns an empty list if the row does not exist.
*
* @return TRowResult containing the row and map of columns to TCells
*
* @param string $tableName name of table
*
* @param string $row row key
*
* @param array $attributes Get attributes
*
* @return \Hbase\TRowResult[]
* @throws \Hbase\IOError
*/
public function getRow($tableName, $row, array $attributes);
/**
* Get the specified columns for the specified table and row at the latest
* timestamp. Returns an empty list if the row does not exist.
*
* @return TRowResult containing the row and map of columns to TCells
*
* @param string $tableName name of table
*
* @param string $row row key
*
* @param string[] $columns List of columns to return, null for all columns
*
* @param array $attributes Get attributes
*
* @return \Hbase\TRowResult[]
* @throws \Hbase\IOError
*/
public function getRowWithColumns($tableName, $row, array $columns, array $attributes);
/**
* Get all the data for the specified table and row at the specified
* timestamp. Returns an empty list if the row does not exist.
*
* @return TRowResult containing the row and map of columns to TCells
*
* @param string $tableName name of the table
*
* @param string $row row key
*
* @param int $timestamp timestamp
*
* @param array $attributes Get attributes
*
* @return \Hbase\TRowResult[]
* @throws \Hbase\IOError
*/
public function getRowTs($tableName, $row, $timestamp, array $attributes);
/**
* Get the specified columns for the specified table and row at the specified
* timestamp. Returns an empty list if the row does not exist.
*
* @return TRowResult containing the row and map of columns to TCells
*
* @param string $tableName name of table
*
* @param string $row row key
*
* @param string[] $columns List of columns to return, null for all columns
*
* @param int $timestamp
* @param array $attributes Get attributes
*
* @return \Hbase\TRowResult[]
* @throws \Hbase\IOError
*/
public function getRowWithColumnsTs($tableName, $row, array $columns, $timestamp, array $attributes);
/**
* Get all the data for the specified table and rows at the latest
* timestamp. Returns an empty list if no rows exist.
*
* @return TRowResult containing the rows and map of columns to TCells
*
* @param string $tableName name of table
*
* @param string[] $rows row keys
*
* @param array $attributes Get attributes
*
* @return \Hbase\TRowResult[]
* @throws \Hbase\IOError
*/
public function getRows($tableName, array $rows, array $attributes);
/**
* Get the specified columns for the specified table and rows at the latest
* timestamp. Returns an empty list if no rows exist.
*
* @return TRowResult containing the rows and map of columns to TCells
*
* @param string $tableName name of table
*
* @param string[] $rows row keys
*
*