Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python HBASE:获取特定列族的所有列_Python_Hbase - Fatal编程技术网

Python HBASE:获取特定列族的所有列

Python HBASE:获取特定列族的所有列,python,hbase,Python,Hbase,我在Hbase中使用2列族创建了此表: connection.create_table( 'twitter_db', {'Hashtag': dict(), 'Lang': dict(), } ) 如何获取行键的列族“Hashtag”中的所有列?如果使用happybase,则可以使用以下命令: row = table.row('row-key', columns=['cf1']) 它将为您提供列族“cf1”的所有列以及“行键”的值 此处提供了更多文档:如果您使

我在Hbase中使用2列族创建了此表:

connection.create_table(
    'twitter_db',
    {'Hashtag': dict(),
     'Lang': dict(),
   }
)

如何获取行键的列族“Hashtag”中的所有列?

如果使用happybase,则可以使用以下命令:

row = table.row('row-key', columns=['cf1'])
它将为您提供列族“cf1”的所有列以及“行键”的值


此处提供了更多文档:

如果您使用的是happybase,则可以使用以下内容:

row = table.row('row-key', columns=['cf1'])
它将为您提供列族“cf1”的所有列以及“行键”的值

此处提供了更多文档: