Click or drag to resize
CqQuery Class

Note: This API is now obsolete.

Class to encapsulate a continuous query (CQ).
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::CqQuery>]
    GemStone.GemFire.CacheCqQuery

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public sealed class CqQuery : [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::CqQuery>]

The CqQuery type exposes the following members.

Properties
  NameDescription
Public propertyName
Get the name for this cq query.
Public propertyQueryString
Get the string for this cq query.
Top
Methods
  NameDescription
Public methodClose
stop the cq query
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Executes the Cq Query on the cache server
Public methodExecuteWithInitialResults
Executes the Cq Query on the cache server and returns the Cqresults.
Public methodExecuteWithInitialResults(UInt32)
Executes the Cq Query on the cache server with the specified timeout and returns the results.
Public methodGetCqAttributes
Get the Attributes for this cq query.
Public methodGetCqAttributesMutator
Get the Attributes Mutator for this cq query.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetQuery
Get the Query for this cq query.
Public methodGetState
get the state of this cq query
Public methodGetStatistics
Get the stats for this cq query.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsClosed
Is this Cq in closed state?
Public methodIsRunning
Is this Cq in running state?
Public methodIsStopped
Is this Cq in stopped state?
Public methodStop
stop the cq query
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
A CqQuery is obtained from a QueryService which in turn is obtained from the Cache. This can be executed to return SelectResults which can be either a ResultSet or a StructSet, or it can be just registered on the java server without returning results immediately rather only the incremental results. This class is intentionally not thread-safe. So multiple threads should not operate on the same CqQuery object concurrently rather should have their own CqQuery objects.
See Also