find

public Optional<E> find(I id)

Finds an entity with the passed ID.

Return

the entity or empty if there is no entity with such ID

Parameters

id

the ID of the entity to find


public Iterator<E> find(TargetFilters filters, ResponseFormat format)

Finds the entities passing the given filters and applies the given FieldMask to the results.

A number of elements to retrieve can be limited to a certain number. The order of the resulting entities is specified by the OrderBy.

Field mask is applied according to FieldMask specs.

The field paths in the entity column field filters are specified to contain a single path member - the name of the entity column.

The filtering process is delegated to the underlying RecordStorage.

Note: The storage must be assigned before calling this method.

Return

all the entities in this repository passed through the filters

Parameters

filters

the entity filters

format

the expected format of the query response

See also