PropertyDefinedNode
@ExperimentalAppSearchApi
class PropertyDefinedNode : FunctionNode
FunctionNode representing the `propertyDefined` query function.
The `propertyDefined` query function will return all documents of types that define the given property. This will include documents that do not have the property itself, so long as that property is a part of the document's schema.
If you need to restrict to documents that have >=1 value(s) populated for that property, see HasPropertyNode.
Summary
Public constructors |
|---|
PropertyDefinedNode(propertyPath: PropertyPath)Constructor for a |
Public functions |
|
|---|---|
Boolean |
|
String |
Returns the name of the function represented by |
PropertyPath |
Returns the |
Int |
hashCode() |
Unit |
setPropertyPath(property: PropertyPath)Sets the property being checked for in the document, as represented by |
String |
toString()Get the string representation of |
Inherited Constants |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
PropertyDefinedNode
PropertyDefinedNode(propertyPath: PropertyPath)
Constructor for a PropertyDefinedNode representing the query function `propertyDefined` that takes in a PropertyPath.
Public functions
getFunctionName
fun getFunctionName(): String
Returns the name of the function represented by PropertyDefinedNode.
getPropertyPath
fun getPropertyPath(): PropertyPath
Returns the PropertyPath representing the property being checked for in the document.
setPropertyPath
fun setPropertyPath(property: PropertyPath): Unit
Sets the property being checked for in the document, as represented by PropertyDefinedNode.
toString
fun toString(): String
Get the string representation of PropertyDefinedNode.
The string representation of PropertyDefinedNode is the function name followed by the property path in quotes surrounded by parentheses.