#
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from thrift.Thrift import *
from .ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
class Iface(object):
def enableTable(self, tableName):
"""
Brings a table on-line (enables it)
@param tableName name of the table
Parameters:
- tableName
"""
pass
def disableTable(self, tableName):
"""
Disables a table (takes it off-line) If it is being served, the master
will tell the servers to stop serving it.
@param tableName name of the table
Parameters:
- tableName
"""
pass
def isTableEnabled(self, tableName):
"""
@param tableName name of table to check
@return true if table is on-line
Parameters:
- tableName
"""
pass
def compact(self, tableNameOrRegionName):
"""
Parameters:
- tableNameOrRegionName
"""
pass
def majorCompact(self, tableNameOrRegionName):
"""
Parameters:
- tableNameOrRegionName
"""
pass
def getTableNames(self, ):
"""
List all the userspace tables.
@return - returns a list of names
"""
pass
def getColumnDescriptors(self, tableName):
"""
List all the column families assoicated with a table.
@param tableName table name
@return list of column family descriptors
Parameters:
- tableName
"""
pass
def getTableRegions(self, tableName):
"""
List the regions associated with a table.
@param tableName table name
@return list of region descriptors
Parameters:
- tableName
"""
pass
def createTable(self, tableName, columnFamilies):
"""
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.
@param tableName name of table to create
@param columnFamilies list of column family descriptors
@throws IllegalArgument if an input parameter is invalid
@throws AlreadyExists if the table name already exists
Parameters:
- tableName
- columnFamilies
"""
pass
def deleteTable(self, tableName):
"""
Deletes a table
@param tableName name of table to delete
@throws IOError if table doesn't exist on server or there was some other
problem
Parameters:
- tableName
"""
pass
def get(self, tableName, row, column):
"""
Get a single TCell for the specified table, row, and column at the
latest timestamp. Returns an empty list if no such value exists.
@param tableName name of table
@param row row key
@param column column name
@return value for specified row/column
Parameters:
- tableName
- row
- column
"""
pass
def getVer(self, tableName, row, column, numVersions):
"""
Get the specified number of versions for the specified table,
row, and column.
@param tableName name of table
@param row row key
@param column column name
@param numVersions number of versions to retrieve
@return list of cells for specified row/column
Parameters:
- tableName
- row
- column
- numVersions
"""
pass
def getVerTs(self, tableName, row, column, timestamp, numVersions):
"""
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.
@param tableName name of table
@param row row key
@param column column name
@param timestamp timestamp
@param numVersions number of versions to retrieve
@return list of cells for specified row/column
Parameters:
- tableName
- row
- column
- timestamp
- numVersions
"""
pass
def getRow(self, tableName, row):
"""
Get all the data for the specified table and row at the latest
timestamp. Returns an empty list if the row does not exist.
@param tableName name of table
@param row row key
@return TRowResult containing the row and map of columns to TCells
Parameters:
- tableName
- row
"""
pass
def getRowWithColumns(self, tableName, row, columns):
"""
Get the specified columns for the specified table and row at the latest
timestamp. Returns an empty list if the row does not exist.
@param tableName name of table
@param row row key
@param columns List of columns to return, null for all columns
@return TRowResult containing the row and map of columns to TCells
Parameters:
- tableName
- row
- columns
"""
pass
def getRowTs(self, tableName, row, timestamp):
"""
Get all the data for the specified table and row at the specified
timestamp. Returns an empty list if the row does not exist.
@param tableName of table
@param row row key
@param timestamp timestamp
@return TRowResult containing the row and map of columns to TCells
Parameters:
- tableName
- row
- timestamp
"""
pass
def getRowWithColumnsTs(self, tableName, row, columns, timestamp):
"""
Get the specified columns for the specified table and row at the specified
timestamp. Returns an empty list if the row does not exist.
@param tableName name of table
@param row row key
@param columns List of columns to return, null for all columns
@return TRowResult containing the row and map of columns to TCells
Parameters:
- tableName
- row
- columns
- timestamp
"""
pass
def mutateRow(self, tableName, row, mutations):
"""
Apply a series of mutations (updates/deletes) to a row in a
single transaction. If an exception is thrown, then the
transaction is aborted. Default current timestamp is used, and
all entries will have an identical timestamp.
@param tableName name of table
@param row row key
@param mutations list of mutation commands
Parameters:
- tableName
- row
- mutations
"""
pass
def mutateRowTs(self, tableName, row, mutations, timestamp):
"""
Apply a series of mutations (updates/deletes) to a row in a
single transaction. If an exception is thrown, then the
transaction is aborted. The specified timestamp is used, and
all entries will have an identical timestamp.
@param tableName name of table
@param row row key
@param mutations list of mutation commands
@param timestamp timestamp
Parameters:
- tableName
- row
- mutations
- timestamp
"""
pass
def mutateRows(self, tableName, rowBatches):
"""
Apply a series of batches (each a series of mutations on a single row)
in a single transaction. If an exception is thrown, then the
transaction is aborted. Default current timestamp is used, and
all entries will have an identical timestamp.
@param tableName name of table
@param rowBatches list of row batches
Parameters:
- tableName
- rowBatches
"""
pass
def mutateRowsTs(self, tableName, rowBatches, timestamp):
"""
Apply a series of batches (each a series of mutations on a single row)
in a single transaction. If an exception is thrown, then the
transaction is aborted. The specified timestamp is used, and
all entries will have an identical timestamp.
@param tableName name of table
@param rowBatches list of row batches
@param timestamp timestamp
Parameters:
- tableName
- rowBatches
- timestamp
"""
pass
味道534018775
- 粉丝: 7
- 资源: 11
会员权益专享
最新资源
- 基于Springboot智能热度分析和自媒体推送平台【毕业设计,源码】
- linklist.cpp
- SSA麻雀搜索算法优化长短期记忆神经网络(SSA-LSTM)回归预测(Matlab完整程序和数据)
- 技术篇-【Python可视化】基于Python的数据可视化(一)
- 全国统计用区划代码和城乡划分代码,全国省市县代码
- EPICSSNS-CSS-4.5.0-LINUX 32位版本 EPICS Control System Studio (CS
- Login.java
- 05FrameLayout.xml
- vs_Enterprise (3).exe
- STM32F103VET6单片机 基于SD卡数字相册(JPG)例程-5&7寸(SSD1963)LCD屏例程源码.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


