Package com.couchbase.lite
Class SelectResult
- java.lang.Object
-
- com.couchbase.lite.SelectResult
-
- Direct Known Subclasses:
SelectResult.As,SelectResult.From
public class SelectResult extends java.lang.ObjectSelectResult represents a single return value of the query statement.
-
-
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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SelectResult.Fromall()Creates a SelectResult object that returns all properties data.static SelectResult.Asexpression(Expression expression)Creates a SelectResult object with the given expression.static SelectResult.Asproperty(java.lang.String property)Creates a SelectResult object with the given property name.
-
-
-
Method Detail
-
property
@NonNull public static SelectResult.As property(@NonNull java.lang.String property)
Creates a SelectResult object with the given property name.- Parameters:
property- The property name.- Returns:
- The SelectResult.As object that you can give the alias name to the returned value.
-
expression
@NonNull public static SelectResult.As expression(@NonNull Expression expression)
Creates a SelectResult object with the given expression.- Parameters:
expression- The expression.- Returns:
- The SelectResult.As object that you can give the alias name to the returned value.
-
all
@NonNull public static SelectResult.From all()
Creates a SelectResult object that returns all properties data. The query returned result will be grouped into a single CBLMutableDictionary object under the key of the data source name.- Returns:
- The SelectResult.From object that you can specify the data source alias name.
-
-