I know we can do it from hbase shell in the following way:
create 't1', {NAME => 'f1', VERSIONS => 5}
I could not find any corresponding option in HTableDesctiptor
in the Java API. Any idea how to do this?
I know we can do it from hbase shell in the following way:
create 't1', {NAME => 'f1', VERSIONS => 5}
I could not find any corresponding option in HTableDesctiptor
in the Java API. Any idea how to do this?
I leave here a sample code based on your example as reference.
Max versions, and other ttl type settings, is specified per column family. So the max versions is on the HColumnDescriptor.