SearchEnginePromotingDatabaseAdapter class

Forwards eligible search requests to a search engine.

Inheritance

Constructors

SearchEnginePromotingDatabaseAdapter({@required DatabaseAdapter master, @required DatabaseAdapter searchEngine, Stream<QueryResult> onSearchError(SearchEnginePromotingDatabaseAdapter database, DocumentSearchRequest request, Object error, StackTrace stackTrace)})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
master DatabaseAdapter
final
onSearchError Stream<QueryResult> Function(SearchEnginePromotingDatabaseAdapter database, DocumentSearchRequest request, Object error, StackTrace stackTrace)
Custom handler for errors returned by the search engine. If the handler is null, the request will be sent to the master database.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
searchEngine DatabaseAdapter
final

Methods

close() Future<void>
Closes the database adapter.
inherited
database() Database
Returns the database.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
performCheckConnection({Duration timeout}) Future<void>
inherited
performDocumentBatch(DocumentBatchRequest request) Future<void>
inherited
performDocumentDelete(DocumentDeleteRequest request) Future<void>
inherited
performDocumentDeleteBySearch(DocumentDeleteBySearchRequest request) Future<void>
inherited
performDocumentInsert(DocumentInsertRequest request) Future<void>
inherited
performDocumentRead(DocumentReadRequest request) Stream<Snapshot>
inherited
performDocumentReadWatch(DocumentReadWatchRequest request) Stream<Snapshot>
inherited
performDocumentSearch(DocumentSearchRequest request) Stream<QueryResult>
override
performDocumentSearchChunked(DocumentSearchChunkedRequest request) Stream<QueryResult>
inherited
performDocumentSearchWatch(DocumentSearchWatchRequest request) Stream<QueryResult>
override
performDocumentTransaction(DocumentTransactionRequest request) Future<void>
inherited
performDocumentUpdate(DocumentUpdateRequest request) Future<void>
inherited
performDocumentUpdateBySearch(DocumentUpdateBySearchRequest request) Future<void>
inherited
performDocumentUpsert(DocumentUpsertRequest request) Future<void>
inherited
performExtension(DatabaseExtensionRequest<DatabaseExtensionResponse> request) Stream<DatabaseExtensionResponse>
inherited
performSchemaRead(SchemaReadRequest request) Stream<DatabaseSchema>
inherited
performSqlQuery(SqlQueryRequest request) Future<SqlIterator>
inherited
performSqlStatement(SqlStatementRequest request) Future<SqlStatementResult>
inherited
performSqlTransaction(SqlTransactionRequest request) Future<void>
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited