Developing Applications for JSON Tables
As part of its support for JSON tables, HPE Data Fabric Database implements the OJAI API. The OJAI API provides methods for creating, reading, updating, and deleting JSON documents in HPE Data Fabric Database JSON tables. It is available in Java, and starting in EEP 6.0, also available in Node.js, Python, C#, and Go. HPE Data Fabric Database also provides a HPE Data Fabric Database JSON Client API for managing JSON tables and a HPE Data Fabric Database JSON REST API for performing basic operations using HTTP calls.
The following shows the general flow for developing an OJAI client application that accesses HPE Data Fabric Database JSON tables:
- Make a connection to HPE Data Fabric Database using the OJAI Connection and Driver interfaces.
- Request a HPE Data Fabric Database JSON table using the JSON DocumentStore.
- Specify the table, document, or column family operation.
- Perform the operation on the table.
- Return the results.
For additional information about OJAI, refer to the following:
- OJAI wiki page
- OJAI github repository - The README file provides an introduction to OJAI
The HPE Data Fabric Database JSON Client API, implemented in Java, enables you to create, drop, and alter HPE Data Fabric Database JSON tables and column families.
You can also use HTTP calls to create, delete, and query HPE Data Fabric Database JSON tables Using the HPE Data Fabric Database JSON REST API.
API Documentation
The following are links to the detailed API pages:
- Java OJAI Client API
- Node.js OJAI Client API
- Python OJAI Client API
- C# OJAI Client API
- Go OJAI Client API
- HPE Data Fabric Database JSON Client
API
NOTEBeginning with MapR version 6.0, the HPE Data Fabric Database
Tableinterface in the HPE Data Fabric Database JSON Client API is deprecated and replaced by theDocumentStoreinterface in the OJAI API.