Sites

Menu

InterestQuery Class

Namespace: Improbable.Gdk.QueryBasedInterest
GDK package: QueryBasedInterest
Source

Utility class to help construct ComponentInterest.Query objects.


Static Methods

Query Source
InterestQuery Query(Constraint constraint)

Creates an InterestQuery.

Returns:
An InterestQuery object.

Parameters

Notes:
  • Returns the full snapshot result by default.


Methods

FilterResults Source
InterestQuery FilterResults(uint resultComponentId, params uint [] resultComponentIds)

Defines what components to return in the query results.

Returns:
An updated InterestQuery object.

Parameters
  • uint resultComponentId : First ID of a component to return from the query results.
  • params uint [] resultComponentIds : Further IDs of components to return from the query results.

Notes:
  • At least one component ID must be provided.
FilterResults Source
InterestQuery FilterResults(IEnumerable<uint> resultComponentIds)

Defines what components to return in the query results.

Returns:
An updated InterestQuery object.

Parameters
  • IEnumerable<uint> resultComponentIds : Set of IDs of components to return from the query results.

Notes:
  • At least one component ID must be provided. Query results are not filtered if resultComponentIds is empty.
AsComponentInterestQuery Source
ComponentInterest.Query AsComponentInterestQuery()

Returns the underlying ComponentInterest.Query object from the InterestQuery class.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums