简体   繁体   English

HBase:如何将列转换为列,而不是家族列

[英]HBase: How to a column(s) to a column, not to a family column

If possible, can someone give me an example of how to add a column, or columns, to an existing column belonging to an existing column family? 如果可能,有人可以给我一个例子,说明如何向属于现有列族的现有列添加一个或多个列吗? I know how to add a column to a column family. 我知道如何将列添加到列族。

Thanks. 谢谢。

You can put whatever you want in a HBase column: a JSON, a serialized Avro, etc. Simply put under your existing column a more complex structure. 您可以将所需的任何内容放在HBase列中:JSON,序列化的Avro等。只需在现有列下放置一个更复杂的结构即可。 But you cannot put another column qualifier under an existing one. 但是您不能将另一个列限定符放在现有列限定符之下。 You have to respect the table -> column family -> column -> anything structure. 您必须尊重table -> column family -> column -> anything结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM