Package com.couchbase.lite
Class SelectResult
- java.lang.Object
-
- com.couchbase.lite.SelectResult
-
- Direct Known Subclasses:
SelectResult.As,SelectResult.From
public class SelectResult extends Object
SelectResult represents the result of a query.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSelectResult.AsSelectResult.As is a SelectResult with an alias.static classSelectResult.FromSelectResult.From is a SelectResult for which you can specify a data source alias.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSelectResult(Expression expression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelectResult.Fromall()Creates a SelectResult that contains values for all properties matching the query.static SelectResult.Asexpression(Expression expression)Creates a SelectResult object with the given expression.static SelectResult.Asproperty(String property)Creates a SelectResult with the given property name.protected voidsetExpression(Expression expression)
-
-
-
Constructor Detail
-
SelectResult
protected SelectResult(@NonNull Expression expression)
-
-
Method Detail
-
property
@NonNull public static SelectResult.As property(@NonNull String property)
Creates a SelectResult with the given property name.- Parameters:
property- The property name.- Returns:
- a SelectResult.From that can be used to alias the property.
-
expression
@NonNull public static SelectResult.As expression(@NonNull Expression expression)
Creates a SelectResult object with the given expression.- Parameters:
expression- The expression.- Returns:
- a SelectResult.From that can be used to alias the property.
-
all
@NonNull public static SelectResult.From all()
Creates a SelectResult that contains values for all properties matching the query. The result is a single CBLMutableDictionary whose key is the name of the data source.- Returns:
- a SelectResult.From that can be used to alias the property.
-
setExpression
protected final void setExpression(@NonNull Expression expression)
-
-