Taal

ContentResolver.QueryArgGroupColumns Field

Definition

Specifies the list of columns (stored as a String[]) against which to group results.

[Android.Runtime.Register("QUERY_ARG_GROUP_COLUMNS", ApiSince=30)]
public const string QueryArgGroupColumns;
[<Android.Runtime.Register("QUERY_ARG_GROUP_COLUMNS", ApiSince=30)>]
val mutable QueryArgGroupColumns : string

Field Value

Attributes

Remarks

Specifies the list of columns (stored as a String[]) against which to group results. When column values are identical, multiple records are collapsed together into a single record.

Columns present in this list must also be included in the projection supplied to Query(Uri, String[], Bundle, CancellationSignal).

Apps targeting R or higher:

  • ContentProvider implementations: When preparing data in Query(Uri, String[], Bundle, CancellationSignal), if group columns is reflected in the returned Cursor, it is strongly recommended that QueryArgSortColumns then be included in the array of honored arguments reflected in Cursor extras Bundle under ExtraHonoredArgs.
  • When querying a provider, where no QUERY_ARG_SQL* otherwise exists in the arguments Bundle, the Content framework will attempt to synthesize an QUERY_ARG_SQL* argument using the corresponding QUERY_ARG_SORT* values.

Java documentation for android.content.ContentResolver.QUERY_ARG_GROUP_COLUMNS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to