简体   繁体   中英

Is Hbase schema on read?

I am new to hbase . I know that HBase is key/value store which stores the data in array of bytes. couple of queries

  1. Does Hbase support data types for columns ?
  2. Is Hbase schema on read (like hive ) or write ?

For the first question , I saw couple of links and got confused.


https://www-01.ibm.com/support/knowledgecenter/SSPT3X_4.0.0/com.ibm.swg.im.infosphere.biginsights.analyze.doc/doc/bsql_encoding.html

Java(HBase) API: How to know the data type of a value stored in bytes

  1. Natively HBase does not support data types for columns everything is treated as byte arrays. Here is an excert from hbase book on supported data types . But you could use high level frameworks like phoenix and here are its supported data types .

  2. As HBase is schema-less I would say HBase relies on schema on read mechanism.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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