Why it matters

Java is native HBase language. Understanding API shapes application development.

Advertisement

The architecture

Connection: expensive; create once per app.

Table: cheap per table; short-lived.

HBase Java APIConnectionone per appTableper table, short-livedPut/Get/ScanoperationsUse try-with-resources for Table; Connection is thread-safe and reusable
API structure.
Advertisement

How it works end to end

Put: single-row write; batches via addColumn.

Get: single-row read; filter columns.

Scan: range read; setStartRow/setStopRow.

BufferedMutator: async batched writes.