ODQueryCreateWithNode(_:_:_:_:_:_:_:_:_:)
Creates a query with a node using provided parameters.
Declaration
func ODQueryCreateWithNode(_ allocator: CFAllocator!, _ node: ODNodeRef!, _ recordTypeOrList: CFTypeRef!, _ attribute: String!, _ matchType: ODMatchType, _ queryValueOrList: CFTypeRef!, _ returnAttributeOrList: CFTypeRef!, _ maxResults: CFIndex, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<ODQueryRef>!Parameters
- allocator:
The memory allocator to use. If
NULL, the default allocator is used. - node:
The node.
- recordTypeOrList:
The type or types of record to query. Can be a
CFStringobject for a single type or aCFArrayobject containingCFStringobjects for multiple types. - attribute:
The name of the attribute to query.
- matchType:
The type of query.
- queryValueOrList:
The value or values to query in the attribute. Can be a
CFStringobject or aCFDataobject for a single value, or aCFArraycontainingCFStringandCFDataobjects for multiple values. - returnAttributeOrList:
The attribute or attributes to be returned from the query. Can be a
CFStringobject for a single attribute or aCFArrayobject containingCFStringobjects for multiple attributes. PassingNULLis equivalent to passingkODAttributeTypeStandardOnly. - maxResults:
The maximum number of values to be returned.
- error:
An error reference for error details. Can be
NULL.
Return Value
The created query.