0

Is there any feature in hbase to create and use sequence similar to postgres like below

CREATE SEQUENCE:


CREATE SEQUENCE schemaname."SEQUENCE_123456"
    INCREMENT BY 1
    MINVALUE 1
    MAXVALUE 9223372036854775807
    START 1
    CACHE 20
    NO CYCLE;

FETCH NextVal of SEQUENCE:

SELECT nextval('SEQUENCE_123456');

For Example if we call SELECT nextval('SEQUENCE_123456') it should return value as 1, if it call for next time it should give 2 and so on...

If not HBase is there any other nosql database which supports this feature.

Tried verifying hbase documentation.

  • HBase tables support an Increment methods, which sounds similar to what you are looking for. – VS_FF Feb 09 '23 at 09:37

0 Answers0