简体   繁体   中英

How do you write column data in rocksDB in java?

How do you write data in column format in rocksdb.

Example of columns can be Id, state, URL, fieldNames, query ;

I should be able to read all data giving Id .

RocksDB is a key value store, so it doesn't have the concept of columns. What you can do, is to store a serialized object as value, which in your example would contain eg state, url, fieldnames and query, and use the id as key.

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