GetByDocumentIdRequest


public final class GetByDocumentIdRequest


Encapsulates a request to retrieve documents by namespace and IDs from the AppSearchSession database.

Summary

Nested types

Builder for GetByDocumentIdRequest objects.

Constants

static final String

Schema type to be used in addProjection to apply property paths to all results, excepting any types that have had their own, specific property paths set.

Public methods

@NonNull Set<String>

Returns the set of document IDs attached to the request.

@NonNull String

Returns the namespace attached to the request.

@NonNull Map<StringList<PropertyPath>>

Returns a map from schema type to property paths to be used for projection.

@NonNull Map<StringList<String>>

Returns a map from schema type to property paths to be used for projection.

Constants

PROJECTION_SCHEMA_TYPE_WILDCARD

Added in 1.1.0-alpha06
public static final String PROJECTION_SCHEMA_TYPE_WILDCARD = "*"

Schema type to be used in addProjection to apply property paths to all results, excepting any types that have had their own, specific property paths set.

Public methods

getIds

Added in 1.1.0-alpha06
public @NonNull Set<StringgetIds()

Returns the set of document IDs attached to the request.

getNamespace

Added in 1.1.0-alpha06
public @NonNull String getNamespace()

Returns the namespace attached to the request.

getProjectionPaths

Added in 1.1.0-alpha06
public @NonNull Map<StringList<PropertyPath>> getProjectionPaths()

Returns a map from schema type to property paths to be used for projection.

If the map is empty, then all properties will be retrieved for all results.

Calling this function repeatedly is inefficient. Prefer to retain the Map returned by this function, rather than calling it multiple times.

getProjections

Added in 1.1.0-alpha06
public @NonNull Map<StringList<String>> getProjections()

Returns a map from schema type to property paths to be used for projection.

If the map is empty, then all properties will be retrieved for all results.

Calling this function repeatedly is inefficient. Prefer to retain the Map returned by this function, rather than calling it multiple times.