class ModelMapper
Represents an object mapper for a specific model.
Members
ModelBatchMapper
batching
Gets a ModelBatchMapper
instance containing utility methods to group
multiple doc mutations in a single batch.
String
name
Gets the name identifier of the model.
Constructor
ModelMapper
()Methods
Executes a SELECT query based on the filter and returns the result as an iterable of documents.
Executes a SELECT query without a filter and returns the result as an iterable of documents.
This is only recommended to be used for tables with a limited amount of results. Otherwise, breaking up the token ranges on the client side should be used.
Gets the first document matching the provided filter or null when not found.
Note that all partition and clustering keys must be defined in order to use this method.
Inserts a document.
When the model is mapped to multiple tables, it will insert a row in each table when all the primary keys are specified.
Uses the provided query and param getter function to execute a query and map the results. Gets a function that takes the document, executes the query and returns the mapped results.