Package com.couchbase.lite
Class DataSource
java.lang.Object
com.couchbase.lite.DataSource
- Direct Known Subclasses:
DataSource.As
A query data source, used for specifying the source of data for a query.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource.As
collection
(Collection collection) Create a collection as a data source.static DataSource.As
Deprecated.use DataSource.collection(Collection)
-
Method Details
-
database
Deprecated.use DataSource.collection(Collection)Create a database as a data source.- Parameters:
database
- the database used as a source of data for query.- Returns:
DataSource.Database
object.
-
collection
Create a collection as a data source.- Parameters:
collection
- the collection used as a source of data for query.- Returns:
DataSource.Database
object.
-