Class DataSource

java.lang.Object
com.couchbase.lite.DataSource
Direct Known Subclasses:
DataSource.As

public class DataSource extends Object
A query data source, used for specifying the source of data for a query.
  • Field Details

    • alias

      @Nullable protected String alias
  • Method Details

    • database

      @Deprecated @NonNull public static DataSource.As database(@NonNull Database 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

      @NonNull public static DataSource.As collection(@NonNull Collection collection)
      Create a collection as a data source.
      Parameters:
      collection - the collection used as a source of data for query.
      Returns:
      DataSource.Database object.