Represents query interface.
Example |
KiiQuery q = new KiiQuery(KiiClause.GreaterThan("score", 80)); q.Limit = 10; q.SortByDesc("score"); |
See Also: Inherited members from object.
|
KiiQuery
()
|
Create Query. |
|
Create Query from KiiCorp.Cloud.Storage.KiiClause |
|
SortByAsc
(string)Sort with the specified key in ascending order. |
|
|
SortByDesc
(string)Sort with the specified key in descending order. |
|
override
|
ToString
()Returns a string that represents the current KiiCorp.Cloud.Storage.KiiQuery. |
Create Query.Syntax
public KiiQuery ()Remarks
Matches all items in the bucket.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Create Query from KiiCorp.Cloud.Storage.KiiClauseSyntax
public KiiQuery (KiiClause clause)Parameters
- clause
- Clause.
Remarks
If clause is null, matches all items in the bucket.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Set the maximum number of results returned on response. This limit behaves in a best effort way, actual number of returned result could be smaller than requested number but never exceed the limit.Syntax
public int Limit { set; }Value
Maximum return items.Remarks
If specified limit is <= 0, 0 will be applied. If the specified limit is greater than the limit of the server or limit is set to 0, limit defined in server will be applied.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Sort with the specified key in ascending order.Syntax
Parameters
- key
- Key.
Exceptions
Type Reason ArgumentException Is thrown when key is empty. Remarks
The type of value associated with key must be number or string.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Sort with the specified key in descending order.Syntax
Parameters
- key
- Key.
Exceptions
Type Reason ArgumentException Is thrown when key is empty. Remarks
The type of value associated with key must be number or string.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns a string that represents the current KiiCorp.Cloud.Storage.KiiQuery.Syntax
public override string ToString ()Returns
A string that represents the current KiiCorp.Cloud.Storage.KiiQuery.Remarks
Developers don't need to use this API in their apps.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0