Querying Documents with the MapR-DB JSON Java API Library
Use the find()
and findById()
methods of a
Table
object to query the documents in the JSON table
that the Table
object represents.
The following permissions are required for querying documents:
- The
readAce
permission on the volumes where the JSON tables that contain the documents are located. For information about how to set permissions on volumes, see Setting/Modifying Whole Volume ACEs. - The
readperm
permission on the JSON tables that contain the documents. For information about how to set permissions on tables, see Enabling Table Authorizations with Access Control Expressions.NOTE: Query results exclude fields on which the user ID calling thefind()
orfindById()
method does not have thereadperm
permission. For information about setting permissions, see Granting or Denying Access to Fields with Access-Control Expressions.