OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.2.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.2.0
    iconOceanBase Database
    SQL - V 4.2.0
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    HBaseAPI solution introduction

    Last Updated:2023-11-02 02:38:17  Updated
    share
    What is on this page
    Background information
    HBaseAPI storage model
    HBaseAPI client
    Client thread pool model
    Routing table warm-up
    Compatibility

    folded

    share

    The HBaseAPI solution uses HBase-compatible APIs and a proper storage model to smoothly migrate HBase services to OceanBase Database.

    Background information

    Based on the basic APIs provided by TableAPI, the HBaseAPI client of OceanBase Database encapsulates the APIs compatible with HBase. Currently, the features of HBase 0.94 are supported. If your business system uses the native HBase data operation logic, you can install an OceanBase cluster to build HBase tables on OBServer nodes and perform data operations by using HBaseAPI.

    You can visit the OceanBase GitHub website to experience OBKV.

    • For more information about how to use TableAPI, see Simple TableAPI Demo.

    To learn more about HBase, visit Apache HBase website or see Apache HBase interface.

    HBaseAPI storage model

    You can use the wide-column model for data modeling to ensure compatibility with HBase data and maintain data by using HBaseAPI. For detailed operations, see HBaseAPI storage model. For details about HBase storage models, see Apache HBase Data Model.

    HBaseAPI client

    You can use HBase-compatible APIs for data processing by using the HBaseAPI client. For detailed operations, see Usage instructions of the HBaseAPI client.

    The following sections describe the features of HBaseAPI.

    Client thread pool model

    HBaseAPI supports managing multiple tables in table pool mode. Currently, three resource pool modes are supported: Reusable, RoundRobin, and ThreadLoca. You can specify a mode when you instantiate the table pool.

    Routing table warm-up

    When an OBServer node in the cluster fails, the client can refresh the routing table information of the specified HBase table to avoid service interruption or unavailability. The client can also refresh the routing information of the cluster by performing irregular warm-up operations.

    Compatibility

    The HBaseAPI client implements HTableInterface. The following table describes the compatibility.

    Modifier and type
    Method and description
    Compatibility
    Result append(Append append)
    Appends values to one or more columns within a single row.
    Supported
    Object[] batch (List <? extends Row > actions)Same as batch(List, Object[]),
    but returns an array of results instead of using a results parameter reference.
    Unsupported
    void batch(List <? extends Row > actions, Object[] results)
    Method that does a batch call on Deletes, Gets, Puts, Increments, Appends and RowMutations.
    Unsupported
    boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, byte[] value,Delete delete)
    Atomically checks if a row/family/qualifier value matches the expected value.
    Supported
    boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, byte[] value, Put put)
    Atomically checks if a row/family/qualifier value matches the expected value.
    Supported
    void close()
    Releases any resources help or pending changes in internal buffers.
    Supported
    <T extends CoprocessorProtocol,R>Map<byte[],R> coprocessorExec(Class<T> protocol, byte[] startKey, byte[] endKey, Batch.Call<T,R> callable)
    Invoke the passed Batch.Call against the CoprocessorProtocol instances running in the selected regions.
    Unsupported
    <T extends CoprocessorProtocol,R> void coprocessorExec(Class<T> protocol, byte[] startKey, byte[] endKey,Batch.Call<T,R> callable,Batch.Callback<R> callback)
    Invoke the passed Batch.Call against the CoprocessorProtocol instances running in the selected regions.
    Unsupported
    <T extends CoprocessorProtocol> T coprocessorProxy(Class<T> protocol, byte[] row)
    Creates and returns a proxy to the CoprocessorProtocol instance running in the region containing the specified row.
    Unsupported
    void delete(Delete delete)
    Deletes the specified cells/row.
    Supported
    void delete(List<Delete> deletes)
    Deletes the specified cells/rows in bulk.
    Supported
    boolean exists(Get get)
    Test for the existence of columns in the table, as specified in the Get.
    Supported
    void flushCommits()
    Executes all the buffered Put operations.
    Supported
    Result get(Get get)
    Extracts certain cells from a given row.
    Supported
    Result[] get(List<Get> gets)
    Extracts certain cells from the given rows, in batch.
    Supported
    org.apache.hadoop.conf.Configuration getConfiguration()
    Returns the Returns the Configuration object used by this instance.
    Supported
    Result getRowOrBefore(byte[] row, byte[] family)
    Deprecated. As of version 0.92 this method is deprecated without replacement. getRowOrBefore is used internally to find entries in .META. and makes various assumptions about the table (which are true for .META. but not in general) to be efficient.
    Deprecated
    ResultScanner getScanner(byte[] family)
    Gets a scanner on the current table for the given family.
    Supported
    ResultScanner getScanner(byte[] family, byte[] qualifier)
    Gets a scanner on the current table for the given family and qualifier.
    Supported
    ResultScanner getScanner(Scan scan)
    Returns a scanner on the current table as specified by the Scan object.
    Supported
    HTableDescriptor getTableDescriptor()
    Gets the table descriptor for this table.
    Unsupported
    byte[] getTableName()
    Gets the name of this table.
    Supported
    long getWriteBufferSize()
    Returns the maximum size in bytes of the write buffer for this HTable.
    Supported
    Result increment(Increment increment)
    Increments one or more columns within a single row.
    Supported
    long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount)
    Atomically increments a column value.
    Supported
    long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount, Durability durability)
    Atomically increments a column value.
    Supported
    boolean isAutoFlush()
    Tells whether or not 'auto-flush' is turned on.
    Supported
    RowLock lockRow(byte[] row)
    Deprecated.RowLock and associated operations are deprecated
    Deprecated
    void mutateRow(RowMutations rm)
    Performs multiple mutations atomically on a single row.
    Unsupported
    void put(List<Put> puts)
    Puts some data in the table, in batch.
    Supported
    void put(Put put)
    Puts some data in the table.
    Supported
    void setAutoFlush(boolean autoFlush)
    See setAutoFlush(boolean, boolean)
    Supported
    void setAutoFlush(boolean autoFlush, boolean clearBufferOnFail)
    Turns 'auto-flush' on or off.
    Supported
    void setWriteBufferSize(long writeBufferSize)
    Sets the size of the buffer in bytes.
    Supported
    void unlockRow(RowLock rl)
    Deprecated.RowLock and associated operations are deprecated
    Deprecated

    Previous topic

    FAQ
    Last

    Next topic

    HBaseAPI storage model
    Next
    What is on this page
    Background information
    HBaseAPI storage model
    HBaseAPI client
    Client thread pool model
    Routing table warm-up
    Compatibility